submodule--helper: convert "{update,clone}" to their own "--super-prefix"
commitf5a6be9d547700b7bd3018f1c0daf3d257cb2762
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 20 Dec 2022 12:39:55 +0000 (20 13:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Dec 2022 01:21:44 +0000 (26 10:21 +0900)
tree81dbe890de4335529be07debeb2980c491d498a3
parent04f1fab4a13ad9eb2757809765720508abeb38da
submodule--helper: convert "{update,clone}" to their own "--super-prefix"

As with a preceding commit to convert "absorbgitdirs", we can convert
"submodule--helper status" to use its own "--super-prefix", instead of
relying on the global "--super-prefix" argument to "git".

We need to convert both of these away from the global "--super-prefix"
at the same time, because "update" will call "clone", but "clone"
itself didn't make use of the global "--super-prefix" for displaying
paths. It was only on the list of sub-commands that accepted it
because "update"'s use of it would set it in its environment.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git.c