]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: correct remote name with fetch
authorDaniel Black <daniel@mariadb.org>
Wed, 9 Oct 2024 03:32:54 +0000 (14:32 +1100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Oct 2024 17:48:08 +0000 (10:48 -0700)
commit0c1a9987da0507050d9dba2adba208d14b944b3a
tree02aabe16077c13cba5b9e90d2605af3c8b817342
parent777489f9e09c8d0dd6b12f9d90de6376330577a2
submodule: correct remote name with fetch

The code fetches the submodules remote based on the superproject remote name
instead of the submodule remote name[1].

Instead of grabbing the default remote of the superproject repository, ask
the default remote of the submodule we are going to run 'git fetch' in.

1. https://lore.kernel.org/git/ZJR5SPDj4Wt_gmRO@pweza/

Signed-off-by: Daniel Black <daniel@mariadb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/t5572-pull-submodule.sh