Skip to content

Commit

Permalink
Issue #53 by Dane Powell: Added support for custom git username and e…
Browse files Browse the repository at this point in the history
…mail. (#1323)
  • Loading branch information
danepowell authored and grasmash committed Apr 5, 2017
1 parent 96b0271 commit 01d0960
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions phing/tasks/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,17 @@
<exec command="git init ${deploy.dir}" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="false"/>
<exec dir="${deploy.dir}" command="git config --local core.excludesfile false" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
<echo>Global .gitignore file is being disabled for this repository to prevent unexpected behavior.</echo>
<!-- Add the git username and email if necessary. -->
<if>
<and>
<isset property="git.user.name"/>
<isset property="git.user.email"/>
</and>
<then>
<exec dir="${deploy.dir}" command="git config --local --add user.email ${git.user.email} user.name ${git.user.name}" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
</then>
</if>

</target>

<target name="deploy:push-all" hidden="true">
Expand Down

0 comments on commit 01d0960

Please sign in to comment.