Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 26b12ed

Browse files
authored
Fixing multiple deployment target bug.
1 parent fb8e802 commit 26b12ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phing/tasks/deploy.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
<exec command="git fetch ${remoteName} ${deploy.branch}" dir="${deploy.dir}" logoutput="true" level="info" passthru="true"/>
6060

6161
<!-- Create the new branch, "[source-branch-name]-build". -->
62-
<exec command="git checkout -b ${deploy.branch}" dir="${deploy.dir}" logoutput="true" checkreturn="true" level="info" passthru="true"/>
62+
<!-- We intentionally use checkreturn="false" in case the branch already exists. `git checkout -B` does not seem to work as advertised -->
63+
<exec command="git checkout -b ${deploy.branch}" dir="${deploy.dir}" logoutput="true" checkreturn="false" level="info" passthru="true"/>
6364

6465
<!-- Pull the latest updates (if available). -->
6566
<exec command="git merge ${remoteName}/${deploy.branch}" dir="${deploy.dir}" logoutput="true" passthru="true"/>

0 commit comments

Comments
 (0)