filter-branch documentation: some more touch-ups.
[gitweb.git] / git-stash.sh
index 16979ab41f1f4b4a9276ac9f318e3885f5c6d2a5..fa8ae7bc29235658aa5741d1baac57b877c17681 100755 (executable)
@@ -67,11 +67,11 @@ save_stash () {
                die "Cannot save the current worktree state"
 
        # create the stash
-       w_commit=$(printf 'WIP on %s' "$msg" |
+       w_commit=$(printf 'WIP on %s\n' "$msg" |
                git commit-tree $w_tree -p $b_commit -p $i_commit) ||
                die "Cannot record working tree state"
 
-       git update-ref -m "$msg" $ref_stash $w_commit ||
+       git update-ref -m "WIP on $msg" $ref_stash $w_commit ||
                die "Cannot save the current status"
        printf >&2 'Saved WIP on %s\n' "$msg"
 }