From: Junio C Hamano Date: Fri, 24 Jul 2026 20:36:51 GMT Subject: Re: [PATCH v2] submodule: resolve insteadOf aliases when matching remote Message-ID: In-Reply-To: <20260723002132.3989727-1-ccjmne@gmail.com> Éric NICOLAS writes: > - Reword the commit message more purposefully > - Adjust the implementation as suggested, avoiding a superfluous > variable > - Tidy up the integration test Queued. Is everybody happy with this version? Thanks. > diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh > index 9554720152..10adeabf0f 100755 > --- a/t/t7406-submodule-update.sh > +++ b/t/t7406-submodule-update.sh > @@ -256,6 +256,25 @@ test_expect_success 'submodule update --remote should fetch upstream changes' ' > ) > ' > > +test_expect_success 'submodule update --remote resolves URL rewrites' ' > + test_config_global "url.$(pwd)/.insteadOf" local: && > + mkdir alias-super alias-submodule && > + ( > + cd alias-submodule && > + git init && > + git commit --allow-empty --message "Initial commit" > + ) && > + ( > + cd alias-super && > + git init && > + git submodule add local:alias-submodule submodule && > + git submodule update --force && > + git -C submodule remote rename origin upstream && > + git -C submodule remote add fork user@host && > + git submodule update --remote > + ) > +'