diff options
author | Glen Choo <chooglen@google.com> | 2022-03-05 01:14:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-05 01:39:13 +0100 |
commit | c9d256249375c7b8a1773139791448860b5789ff (patch) | |
tree | 3e32e9d26cab880b5f21ddec0df6c19dd34e4508 /git-submodule.sh | |
parent | submodule update: add tests for --filter (diff) | |
download | git-c9d256249375c7b8a1773139791448860b5789ff.tar.xz git-c9d256249375c7b8a1773139791448860b5789ff.zip |
submodule--helper update-clone: check for --filter and --init
"git submodule update --filter" also requires the "--init" option. Teach
update-clone to do this usage check in C and remove the check from
git-submodule.sh.
In addition, change update-clone's usage string so that it teaches users
about "git submodule update" instead of "git submodule--helper
update-clone" (the string is copied from git-submodule.sh). This should
be more helpful to users since they don't invoke update-clone directly.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 51be7c7f7e..aa8bdfca9d 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -356,11 +356,6 @@ cmd_update() shift done - if test -n "$filter" && test "$init" != "1" - then - usage - fi - { git ${wt_prefix:+-C "$wt_prefix"} submodule--helper update-clone \ ${GIT_QUIET:+--quiet} \ |