diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-10-20 14:02:21 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-10-20 14:02:21 -0400 |
commit | 004a68e5c5ba6c4d89a8e3d7c1b767e2668841f0 (patch) | |
tree | 09fffa1ea608424b560c8691e4c878dcb56db9e1 /commit.d/50vcs-commit | |
parent | 739337c857303388ac11d66d15323286393dd981 (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-x | commit.d/50vcs-commit | 1 |
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" |