Skip to content

Commit

Permalink
stash save: fix parameter handling
Browse files Browse the repository at this point in the history
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 <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jul 23, 2008
1 parent c8fe198 commit 47629dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-stash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ save_stash () {
shift
esac

stash_msg="$1"
stash_msg="$*"

if no_changes
then
Expand Down Expand Up @@ -267,7 +267,7 @@ show)
;;
save)
shift
save_stash "$*"
save_stash "$@"
;;
apply)
shift
Expand Down

0 comments on commit 47629dc

Please sign in to comment.