]> git.99rst.org Git - git.git/commit
submodule--helper: use submodule_name_to_gitdir in add_submodule
authorAdrian Ratiu <redacted>
Mon, 12 Jan 2026 18:46:22 +0000 (20:46 +0200)
committerJunio C Hamano <redacted>
Mon, 12 Jan 2026 19:56:55 +0000 (11:56 -0800)
commitb60f7d890dee571069f9c3c6d44ecaed5c34fa39
treeed2b2587f8a247cd667ec3e12fae39cc0012b171
parent4badef0c3503dc29059d678abba7fac0f042bc84
submodule--helper: use submodule_name_to_gitdir in add_submodule

While testing submodule gitdir path encoding, I noticed submodule--helper
is still using a hardcoded modules gitdir path leading to test failures.

Call the submodule_name_to_gitdir() helper instead, which was invented
exactly for this purpose and is already used by all the other locations
which work on gitdirs.

Also narrow the scope of the submod_gitdir_path variable which is not
used anymore in the updated "else" branch.

Signed-off-by: Adrian Ratiu <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/submodule--helper.c
git clone https://git.99rst.org/PROJECT