summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommit.d/50vcs-commit9
-rw-r--r--debian/changelog3
2 files changed, 7 insertions, 5 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 7318a46..45143c3 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -37,8 +37,8 @@ fi
if [ "$VCS" = git ] && [ -d .git ]; then
if [ -n "$USER" ]; then
- export GIT_COMMITTER_NAME="$USER"
- export GIT_COMMITTER_EMAIL="$USER@$hostname"
+ export GIT_AUTHOR_NAME="$USER"
+ export GIT_AUTHOR_EMAIL="$USER@$hostname"
fi
if [ -n "$logfile" ]; then
git commit $GIT_COMMIT_OPTIONS -F "$logfile"
@@ -60,12 +60,11 @@ elif [ "$VCS" = hg ] && [ -d .hg ]; then
elif [ "$VCS" = bzr ] && [ -d .bzr ]; then
if [ -n "$USER" ]; then
export EMAIL="$USER <$USER@$hostname>"
- BZR_AUTHOR='--author="root <root@$hostname>"'
fi
if [ -n "$logfile" ]; then
- bzr commit "$BZR_AUTHOR" $BZR_COMMIT_OPTIONS -F "$logfile"
+ bzr commit $BZR_COMMIT_OPTIONS -F "$logfile"
else
- bzr commit "$BZR_AUTHOR" $BZR_COMMIT_OPTIONS
+ bzr commit $BZR_COMMIT_OPTIONS
fi
elif [ "$VCS" = darcs ] && [ -d _darcs ]; then
if [ -z "$USER" ]; then
diff --git a/debian/changelog b/debian/changelog
index b4a12a1..7ed62bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,9 @@ etckeeper (0.47) UNRELEASED; urgency=low
user home directory when sudo etckeeper is run. Closes: #583581
* hg: Set HGUSER (if not already set) to avoid warning message when
committing. Closes: #533298
+ * Both git and bzr default to showing the author of a commit,
+ and not the committer. So, set the author to the user running sudo
+ for both. The committer will then be root.
-- Joey Hess <joeyh@debian.org> Fri, 28 May 2010 13:33:44 -0400