Skip to content

Commit

Permalink
stash: end index commit log with a newline
Browse files Browse the repository at this point in the history
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 843103d.

Signed-off-by: Jean-Luc Herren <jlh@gmx.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jean-Luc Herren authored and Junio C Hamano committed Sep 12, 2007
1 parent 4fb5fd5 commit 6143fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-stash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ save_stash () {

# state of the index
i_tree=$(git write-tree) &&
i_commit=$(printf 'index on %s' "$msg" |
i_commit=$(printf 'index on %s\n' "$msg" |
git commit-tree $i_tree -p $b_commit) ||
die "Cannot save the current index state"

Expand Down

0 comments on commit 6143fa2

Please sign in to comment.