* [PATCH] git-stash: fix "can't shift that many" with no arguments
@ 2007-07-02 4:20 Jeff King
0 siblings, 0 replies; only message in thread
From: Jeff King @ 2007-07-02 4:20 UTC (permalink / raw)
To: Junio C Hamano; +Cc: nanako3, git
Signed-off-by: Jeff King <peff@peff.net>
---
git-stash.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index ec18ef6..7644bd5 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
--
1.5.2.2.1452.g896f6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-02 4:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-02 4:20 [PATCH] git-stash: fix "can't shift that many" with no arguments Jeff King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).