summaryrefslogtreecommitdiff
path: root/commit.d
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-04-15 11:50:28 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-04-15 11:50:28 -0400
commitbfd3d600a8c75cb9f903a53b819f4cf593c25428 (patch)
treec302f6c76a369d8a4591628915c47c2a2feb3236 /commit.d
parentd168993b0e54f3f98ef804798f6a0d0029ee1175 (diff)
Fix logic error in darcs user code. Closes: #577918
Diffstat (limited to 'commit.d')
-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 a2651bb..ce6c899 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -51,7 +51,7 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then
elif [ "$VCS" = darcs ] && [ -d _darcs ]; then
logfile="$(mktemp -t etckeeper-$VCS.XXXXXXXXXX)"
printf "%b" "$message" > "$logfile"
- if [ -n "$USER" ]; then
+ if [ -z "$USER" ]; then
USER=root
fi
if [ -n "$message" ]; then