]> Pileus Git - ~andy/git/commitdiff
stash save: fix parameter handling
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 Jul 2008 20:33:44 +0000 (13:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jul 2008 23:57:03 +0000 (16:57 -0700)
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>
git-stash.sh

index e4cb6c3e4bef5a714ff245624503a004d3c293e3..d4609ed66e56dc6021c800d60286bec38615ff39 100755 (executable)
@@ -93,7 +93,7 @@ save_stash () {
                shift
        esac
 
-       stash_msg="$1"
+       stash_msg="$*"
 
        if no_changes
        then
@@ -267,7 +267,7 @@ show)
        ;;
 save)
        shift
-       save_stash "$*"
+       save_stash "$@"
        ;;
 apply)
        shift