summaryrefslogtreecommitdiff
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
parent739337c857303388ac11d66d15323286393dd981 (diff)
Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting the user to configure it in .gitconfig. Closes: #599749
-rwxr-xr-xcommit.d/50vcs-commit1
-rw-r--r--debian/changelog2
2 files changed, 3 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"
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 <joeyh@debian.org> Wed, 22 Sep 2010 17:45:57 -0400