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 + debian/changelog | 2 ++ 2 files changed, 3 insertions(+) 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" diff --git a/debian/changelog b/debian/changelog index 9578431..f800d72 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ etckeeper (0.50) UNRELEASED; urgency=low * Ignore /etc/.initctl. Closes: #598121 * Do not warn about special files or hardlinks if they are ignored by git. Fixes #549354 for git, but not for other VCSs. + * Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting + the user to configure it in .gitconfig. Closes: #599749 -- Joey Hess Wed, 22 Sep 2010 17:45:57 -0400 -- cgit v1.2.3