Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-stash: fix "can't shift that many" with no arguments
[gitweb.git]
/
git-stash.sh
diff --git
a/git-stash.sh
b/git-stash.sh
index ec18ef6d46e5c44330f60fa52ddadde08b242e0c..7644bd5a23d46bdcb5f8da00e2e21bce184a1669 100755
(executable)
--- 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