git-remote: exit with non-zero status after detecting error in "rm".
[gitweb.git] / git-stash.sh
index 30425ce6df8b8da9b105fa7d8e958936420983ed..7ba61625baff8236f51d6c0babe9747c43664351 100755 (executable)
@@ -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"