Skip to content
Permalink
Browse files

Add git branch to phing build.

  • Loading branch information...
markstory committed Feb 21, 2012
1 parent a9c279a commit 19292a012b56b7bfa35044d160d5053a144c399b
Showing with 4 additions and 1 deletion.
  1. +4 −1 build.xml
@@ -84,6 +84,9 @@
<property name="pear.package" value="${project.name}-${pear.version}" />

<echo msg="Preparing package of ${version} (${pear.version}+${pear.stability})" />

<!-- Get the current git branch -->
<exec command="git name-rev HEAD 2>/dev/null | awk '{ print $2 }'" outputProperty="git.branch" />
</target>

<!--
@@ -180,7 +183,7 @@
<fail if="noshipit" msg="You said not to ship it." />

<echo msg="Pushing commit and tag." />
<exec command="git push ${git.remote}" logoutput="true" checkreturn="true" />
<exec command="git push ${git.remote} ${git.branch}" logoutput="true" checkreturn="true" />
<exec command="git push ${git.remote} ${release_version}" logoutput="true" checkreturn="true" />
<echo msg="Push complete." />
</target>

0 comments on commit 19292a0

Please sign in to comment.
You can’t perform that action at this time.