diff options
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 9 |
1 files changed, 4 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 |