diff options
author | Pierre Habouzit <madcoder@debian.org> | 2008-07-21 20:15:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-01 23:16:38 -0700 |
commit | 00332b8152c541fcb8887019bb04dd425739d038 (patch) | |
tree | 6ffee64e761615848fa4c1eb6fd9a3e598ad9e36 /git-submodule.sh | |
parent | t/t4202-log.sh: add newline at end of file (diff) | |
download | tgif-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-x | git-submodule.sh | 2 |
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 ' | |