Skip to content

Commit 47629dc

Browse files
committed
stash save: fix parameter handling
A command line "git stash save --keep-index I was doing this" was misparsed and keep-index codepath did not trigger. Signed-off-by: Junio C Hamano <[email protected]>
1 parent c8fe198 commit 47629dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-stash.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ save_stash () {
9393
shift
9494
esac
9595

96-
stash_msg="$1"
96+
stash_msg="$*"
9797

9898
if no_changes
9999
then
@@ -267,7 +267,7 @@ show)
267267
;;
268268
save)
269269
shift
270-
save_stash "$*"
270+
save_stash "$@"
271271
;;
272272
apply)
273273
shift

0 commit comments

Comments
 (0)