summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Pierre Habouzit <madcoder@debian.org>2008-07-21 20:15:59 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-01 23:16:38 -0700
commit00332b8152c541fcb8887019bb04dd425739d038 (patch)
tree6ffee64e761615848fa4c1eb6fd9a3e598ad9e36 /git-submodule.sh
parentt/t4202-log.sh: add newline at end of file (diff)
downloadtgif-00332b8152c541fcb8887019bb04dd425739d038.tar.xz
git-submodule: move ill placed shift.
When running git submodule update -i, the "-i" is shifted before recursing into cmd_init and then again outside of the loop. This causes some /bin/sh to complain about shifting when there are no arguments left (and would discard anything written after -i too). Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 099a7d7560..21e5b5b7da 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -269,6 +269,7 @@ cmd_update()
do
case "$1" in
-q|--quiet)
+ shift
quiet=1
;;
-i|--init)
@@ -286,7 +287,6 @@ cmd_update()
break
;;
esac
- shift
done
git ls-files --stage -- "$@" | grep '^160000 ' |