summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2015-12-01 11:57:49 -0400
committerJoey Hess <joeyh@joeyh.name>2015-12-01 11:57:49 -0400
commit4da02abb32a147a34780f176ef0775896a7f42d2 (patch)
treeb023250440c0246e9488f4a9665d8681fbf5ceec
parenta1eda6d10d7b2d712e9e248e9a48970bec53d5f0 (diff)
/dev/null test output
-rwxr-xr-xcommit.d/50vcs-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 569ba6c..89aa6c6 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -97,7 +97,7 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then
EMAIL="$USER <$USER@$hostname>"
export EMAIL
else
- bzr whoami || export EMAIL="$ORIG_USER <$ORIG_USER@$hostname>"
+ bzr whoami >/dev/null 2>&1 || export EMAIL="$ORIG_USER <$ORIG_USER@$hostname>"
fi
if [ -n "$logfile" ]; then
bzr commit $BZR_COMMIT_OPTIONS -F "$logfile"