From 004a68e5c5ba6c4d89a8e3d7c1b767e2668841f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 20 Oct 2010 14:02:21 -0400 Subject: Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting the user to configure it in .gitconfig. Closes: #599749 --- commit.d/50vcs-commit | 1 + 1 file changed, 1 insertion(+) (limited to 'commit.d/50vcs-commit') 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" -- cgit v1.2.3