aboutsummaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-05-26 00:33:03 -0700
committerJunio C Hamano <junkio@cox.net>2007-05-26 00:33:03 -0700
commita23bfaed7da90ccdc75cbfd0099741080381f60a (patch)
treed423650484673c97e53810dfb599f2d6415e6ada /git-tag.sh
parent816366e23dfe366b938b427eac8ea1c8345ea339 (diff)
downloadgit-a23bfaed7da90ccdc75cbfd0099741080381f60a.tar.gz
git-a23bfaed7da90ccdc75cbfd0099741080381f60a.tar.xz
More echo "$user_message" fixes.
Here are fixes to more uses of 'echo "$msg"' where $msg could contain backslashed sequence. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh
index 4a0a7b660..6f0b7a721 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -126,7 +126,7 @@ if [ "$annotate" ]; then
echo "#" ) > "$GIT_DIR"/TAG_EDITMSG
${VISUAL:-${EDITOR:-vi}} "$GIT_DIR"/TAG_EDITMSG || exit
else
- echo "$message" >"$GIT_DIR"/TAG_EDITMSG
+ printf '%s\n' "$message" >"$GIT_DIR"/TAG_EDITMSG
fi
grep -v '^#' <"$GIT_DIR"/TAG_EDITMSG |