diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-15 11:49:04 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-15 11:49:04 -0400 |
commit | d168993b0e54f3f98ef804798f6a0d0029ee1175 (patch) | |
tree | d1ce27a4cdebfdbc13316ce0b3979f9ab8677b87 /commit.d/50vcs-commit | |
parent | 2a0b0bcab54bffadccbbdee80b4d46fab4609f1b (diff) |
Revert darcs to using --logfile again, necessary for multiline commit messages. Closes: #577915
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit index da99d14..a2651bb 100755 --- a/commit.d/50vcs-commit +++ b/commit.d/50vcs-commit @@ -49,11 +49,13 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then bzr commit "$BZR_AUTHOR" $BZR_COMMIT_OPTIONS fi elif [ "$VCS" = darcs ] && [ -d _darcs ]; then + logfile="$(mktemp -t etckeeper-$VCS.XXXXXXXXXX)" + printf "%b" "$message" > "$logfile" if [ -n "$USER" ]; then USER=root fi if [ -n "$message" ]; then - darcs record --author="$USER" $DARCS_COMMIT_OPTIONS -m "$message" + darcs record --author="$USER" $DARCS_COMMIT_OPTIONS --logfile="$logfile" else darcs record --author="$USER" $DARCS_COMMIT_OPTIONS fi |