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>
This commit is contained in:
parent
aaca4914e9
commit
006a866464
@ -133,7 +133,7 @@ apply_stash () {
|
|||||||
# Main command set
|
# Main command set
|
||||||
case "$1" in
|
case "$1" in
|
||||||
list | '')
|
list | '')
|
||||||
shift
|
test $# -gt 0 && shift
|
||||||
if test $# = 0
|
if test $# = 0
|
||||||
then
|
then
|
||||||
set x -n 10
|
set x -n 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user