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

Split deploy git variables #1341

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions phing/tasks/deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,14 @@
<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>
<isset property="git.user.name"/>
<then>
<exec dir="${deploy.dir}" command="git config --local --add user.name ${git.user.name}" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
</if>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XML tags are not properly closed here.

<if>
<isset property="git.user.email"/>
<then>
<exec dir="${deploy.dir}" command="git config --local --add user.email ${git.user.email}" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
</if>

</target>
Expand Down
4 changes: 4 additions & 0 deletions template/blt/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ project:
git:
default_branch: master
remotes: []
# Overrides git-config user.name and user.email respectively on deploy git repository.
#user:
# name: 'John Doe'
# email: '[email protected]'

drush:
# You can set custom project aliases in drush/site-aliases/aliases.drushrc.php.
Expand Down