aboutsummaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-23 13:33:44 -0700
committerJunio C Hamano <gitster@pobox.com>2008-07-23 16:57:03 -0700
commit47629dcff0fc75d58f9319d221a78934358e4ef8 (patch)
treedf8e6b804362ce540de264ef6d01e0f49323bd82 /git-stash.sh
parentc8fe1980b2b8e5c61f05a59d3bf9dedd5afa8faa (diff)
downloadgit-47629dcff0fc75d58f9319d221a78934358e4ef8.tar.gz
git-47629dcff0fc75d58f9319d221a78934358e4ef8.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-stash.sh b/git-stash.sh
index e4cb6c3e4..d4609ed66 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -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