summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-07-02 06:20:34 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-02 06:38:27 +0200
commit006a86646434e5212defdea59092059fe41387b0 (patch)
tree771975b5e2f5a93388df01994e25ca9753f12b17
parentgit-stash: fix "no arguments" case in documentation (diff)
downloadgit-006a86646434e5212defdea59092059fe41387b0.tar.xz
git-006a86646434e5212defdea59092059fe41387b0.zip
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>
-rwxr-xr-xgit-stash.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index ec18ef6d46..7644bd5a23 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