summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJean-Luc Herren <jlh@gmx.ch>2007-09-12 18:45:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-12 19:05:56 (GMT)
commit6143fa2c9cc74023bab3279764cd6158b1227359 (patch)
tree616fa2cd6ba89562cfe8b9807985c745e081c1eb /git-stash.sh
parent4fb5fd5d301ee53882a3c2ed717c5a9fd6dc0506 (diff)
downloadgit-6143fa2c9cc74023bab3279764cd6158b1227359.zip
git-6143fa2c9cc74023bab3279764cd6158b1227359.tar.gz
git-6143fa2c9cc74023bab3279764cd6158b1227359.tar.bz2
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>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index 30425ce..7ba6162 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -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"