From: Jeff King Date: Mon, 2 Jul 2007 04:20:34 +0000 (-0400) Subject: git-stash: fix "can't shift that many" with no arguments X-Git-Tag: v1.5.3-rc0~12^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=006a86646434e5212defdea59092059fe41387b0;p=git.git git-stash: fix "can't shift that many" with no arguments Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/git-stash.sh b/git-stash.sh index ec18ef6d4..7644bd5a2 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -133,7 +133,7 @@ apply_stash () { # Main command set case "$1" in list | '') - shift + test $# -gt 0 && shift if test $# = 0 then set x -n 10