Skip to content

Commit

Permalink
Escape git name and email
Browse files Browse the repository at this point in the history
This allows using spaces in the git username.

Signed-off-by: Jacob Kiers <[email protected]>
  • Loading branch information
Jacob Kiers committed Jul 24, 2017
1 parent 23ff83f commit 9dd7c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ if [[ ! -f /backup/.ssh/id_rsa ]] ; then
git config --global credential.helper '!aws codecommit credential-helper $@'
git config --global credential.UseHttpPath true
fi
git config --global user.name $GIT_USERNAME
git config --global user.email $GIT_EMAIL
git config --global user.name "$GIT_USERNAME"
git config --global user.email "$GIT_EMAIL"

test -d /backup/git/ || git clone --depth 1 $GIT_REPO /backup/git --branch $GIT_BRANCH || git clone $GIT_REPO /backup/git
cd /backup/git/
Expand Down

0 comments on commit 9dd7c38

Please sign in to comment.