Skip to content

Commit

Permalink
git-stash: fix "can't shift that many" with no arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jul 2, 2007
1 parent aaca491 commit 006a866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-stash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 006a866

Please sign in to comment.