@matheusbsbs / matheus-bagliano / commits / 006a866464
Fork 0

git-stash: fix "can't shift that many" with no arguments

Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 2, 2007 at 00:20 UTC 006a86646434e5212defdea59092059fe41387b0
1 file changed +1 -1
git-stash.sh
+1 -1
@@ -133,7 +133,7 @@ apply_stash () {
133 # Main command set
134 case "$1" in
135 list | '')
136 - shift
136 + test $# -gt 0 && shift
137 if test $# = 0
138 then
139 set x -n 10