summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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