Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-07-02 08:20:34 +0400
committerJunio C Hamano <gitster@pobox.com>2007-07-02 08:38:27 +0400
commit006a86646434e5212defdea59092059fe41387b0 (patch)
tree771975b5e2f5a93388df01994e25ca9753f12b17 /git-stash.sh
parentaaca4914e9074f5f5b51c8966688a75e7fe132d7 (diff)
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>
Diffstat (limited to 'git-stash.sh')
-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