Skip to content

Commit

Permalink
Fixes acquia#1286: Silence git output when it may output fatal errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Apr 5, 2017
1 parent c00d8ab commit b2f2d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phing/tasks/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
</target>

<target name="deploy:remote:pull" description="Checks out deploy branch from upstream remote." hidden="true">
<exec command="git fetch ${remoteName} ${deploy.branch}" dir="${deploy.dir}" logoutput="true" level="${blt.exec_level}" passthru="true"/>
<!-- Hide output in case branch does not exist on remote. Would emit misleading "fatal" error message. -->
<exec command="git fetch ${remoteName} ${deploy.branch}" dir="${deploy.dir}" logoutput="false" level="${blt.exec_level}" passthru="true"/>

<!-- Create the new branch, "[source-branch-name]-build". -->
<!-- We intentionally use checkreturn="false" in case the branch already exists. `git checkout -B` does not seem to work as advertised -->
Expand Down

0 comments on commit b2f2d55

Please sign in to comment.