summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2013-11-03 11:32:32 +0100
committerJoey Hess <joey@kitenet.net>2013-11-03 12:10:59 -0400
commit0b4b9c7162d41b45664a689c1a1d3b0e0bc283b5 (patch)
tree8192af1df7988d1be1d00b37894e85f0f2adc0c9 /commit.d/50vcs-commit
parent902d8937e647ed2a241c014aa8bcb1c1015679ec (diff)
Export Git variables, otherwise Git falls back to determining them itself.
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-xcommit.d/50vcs-commit6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 3a4c819..5987ad6 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(shift()))[7])' "$USER")"
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)" || true
+ export 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)" || true
+ export 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)" || true
+ export GIT_COMMITER_EMAIL="$(git config --global user.email)" || true
fi
if [ -z "$GIT_AUTHOR_NAME" ]; then