diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-28 13:55:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-28 13:55:50 -0400 |
commit | dc31f0c567be98d2d497da93e53fa0c010058658 (patch) | |
tree | ee87a05c24ef1afe867f7c1affb433ba46cb77b0 /commit.d/50vcs-commit | |
parent | 508b728d3d336ce344be7be56cc6267c16b8b596 (diff) |
hg: Set HGUSER (if not already set) to avoid warning message when committing. Closes: #533298
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index 69cfd6b..7318a46 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -49,6 +49,9 @@ elif [ "$VCS" = hg ] && [ -d .hg ]; then if [ -n "$USER" ]; then export LOGNAME="$USER" fi + if [ -n "$HGUSER" ]; then + export HGUSER="$USER@$hostname" + fi if [ -n "$logfile" ]; then hg commit $HG_COMMIT_OPTIONS -l "$logfile" else |