git-merge: Properly quote $merge_msg variable.
authorJunio C Hamano <junkio@cox.net>
Sat, 4 Feb 2006 03:41:33 +0000 (19:41 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 4 Feb 2006 03:41:33 +0000 (19:41 -0800)
Otherwise it would go though shell expansion...

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge.sh

index 92e5a65..8c0a92c 100755 (executable)
@@ -293,7 +293,7 @@ for remote
 do
        echo $remote
 done >"$GIT_DIR/MERGE_HEAD"
-echo $merge_msg >"$GIT_DIR/MERGE_MSG"
+echo "$merge_msg" >"$GIT_DIR/MERGE_MSG"
 
 if test "$merge_was_ok" = t
 then