]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: accept '-i' shorthand for update --init
authorDominique Martinet <dominique.martinet@atmark-techno.com>
Wed, 8 Jul 2026 03:33:42 +0000 (03:33 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Jul 2026 17:48:46 +0000 (10:48 -0700)
commitff1da37f58e754a29dff0df03d58b1042a4d5654
treeef88c2a618b3b6753cd6cc6556ef3fa780f5b635
parente9019fcafe0040228b8631c30f97ae1adb61bcdc
submodule--helper: accept '-i' shorthand for update --init

commit 3ad0ba722744 ("git-submodule.sh: improve variables readability")
made `git submodules update -i` pass `-i` as is to submodule--helper,
but it fails with `error: unknown switch `i'` because the helper does
not accept the short option.

All other short options supported by git-submodule.sh are properly
handle in the helper, so also add the alias for --init

Fixes: 3ad0ba722744 ("git-submodule.sh: improve variables readability")
Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c