diff options
author | Joey Hess <joey@kitenet.net> | 2013-07-27 12:24:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-07-27 12:24:28 -0400 |
commit | ba86e5b7f8442342107ce48dccd832a4ca339a12 (patch) | |
tree | c9392d3c005c8b57f007b393ecec3f48b603e050 /commit.d/50vcs-commit | |
parent | d4c96b4ec567fd9c7a5ae7a736f57ff38d492a08 (diff) |
Guard git config calls. Closes: #717957
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index a700589..bc40789 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -46,14 +46,14 @@ if [ "$VCS" = git ] && [ -d .git ]; then USER_HOME="$(perl -e 'print ((getpwnam("joey"))[7])')" if [ -n "$USER_HOME" ] && [ -e "$USER_HOME/.gitconfig" ]; then if [ -z "$GIT_AUTHOR_NAME" ]; then - GIT_AUTHOR_NAME=$(git config -f "$USER_HOME/.gitconfig" user.name) + GIT_AUTHOR_NAME="$(git config -f "$USER_HOME/.gitconfig" user.name)" || true fi if [ -z "$GIT_AUTHOR_EMAIL" ]; then - GIT_AUTHOR_EMAIL=$(git config -f "$USER_HOME/.gitconfig" user.email) + GIT_AUTHOR_EMAIL="$(git config -f "$USER_HOME/.gitconfig" user.email)" || true fi fi if [ -z "$GIT_COMMITTER_EMAIL" ]; then - GIT_COMMITER_EMAIL="$(git config --global user.email)" + GIT_COMMITER_EMAIL="$(git config --global user.email)" || true fi if [ -z "$GIT_AUTHOR_NAME" ]; then |