summaryrefslogtreecommitdiff
path: root/commit.d
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-28 13:55:50 -0400
committerJoey Hess <joey@kitenet.net>2010-05-28 13:55:50 -0400
commitdc31f0c567be98d2d497da93e53fa0c010058658 (patch)
treeee87a05c24ef1afe867f7c1affb433ba46cb77b0 /commit.d
parent508b728d3d336ce344be7be56cc6267c16b8b596 (diff)
hg: Set HGUSER (if not already set) to avoid warning message when committing. Closes: #533298
Diffstat (limited to 'commit.d')
-rwxr-xr-xcommit.d/50vcs-commit3
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