@matheusbsbs / matheus-bagliano / commits / 6143fa2c9c
Fork 0

stash: end index commit log with a newline

There was no newline at the end of the index commit message, putting the shell prompt at its end after a 'git cat-file commit $id'. This is similar to what was fixed in 843103d69388a5c74ed99753e1c162a66835b04d. Signed-off-by: Jean-Luc Herren <jlh@gmx.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jean-Luc Herren committed Sep 12, 2007 at 20:45 UTC 6143fa2c9cc74023bab3279764cd6158b1227359
1 file changed +1 -1
git-stash.sh
+1 -1
@@ -57,7 +57,7 @@ save_stash () {
57
58 # state of the index
59 i_tree=$(git write-tree) &&
60 - i_commit=$(printf 'index on %s' "$msg" |
60 + i_commit=$(printf 'index on %s\n' "$msg" |
61 git commit-tree $i_tree -p $b_commit) ||
62 die "Cannot save the current index state"
63