summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-10-20 14:02:21 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-10-20 14:02:21 -0400
commit004a68e5c5ba6c4d89a8e3d7c1b767e2668841f0 (patch)
tree09fffa1ea608424b560c8691e4c878dcb56db9e1 /commit.d/50vcs-commit
parent739337c857303388ac11d66d15323286393dd981 (diff)
Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting the user to configure it in .gitconfig. Closes: #599749
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-xcommit.d/50vcs-commit1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 959babb..7fb4809 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -42,6 +42,7 @@ if [ "$VCS" = git ] && [ -d .git ]; then
if [ -n "$USER" ]; then
export GIT_AUTHOR_NAME="$USER"
export GIT_AUTHOR_EMAIL="$USER@$hostname"
+ export GIT_COMMITTER_EMAIL=`whoami`"@$hostname"
fi
if [ -n "$logfile" ]; then
git commit $GIT_COMMIT_OPTIONS -F "$logfile"