提交 00332b81 编写于 作者: P Pierre Habouzit 提交者: Junio C Hamano

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: NPierre Habouzit <madcoder@debian.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 734a6ffa
......@@ -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 ' |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册