]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: drop "update --prefix <pfx>" for "-C <pfx> update"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 8 Nov 2022 14:10:39 +0000 (15:10 +0100)
committerTaylor Blau <me@ttaylorr.com>
Tue, 8 Nov 2022 19:55:30 +0000 (14:55 -0500)
commit1b6e2001c7fd96214b1fe2f910fad5cbb60b607a
tree538600be34c264d632b2d764270c78416ef343e4
parent64f48ad1f036be2a09273051b28bfacf471cbfcc
submodule--helper: drop "update --prefix <pfx>" for "-C <pfx> update"

Since 29a5e9e1ffe (submodule--helper update-clone: learn --init,
2022-03-04) we've been passing "-C <prefix>" from "git-submodule.sh"
whenever we pass "--prefix <prefix>", so the latter is redundant to
the former. Let's drop the "--prefix" option.

Suggested-by: Glen Choo <chooglen@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/submodule--helper.c
git-submodule.sh