git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] submodule: resolve insteadOf aliases when matching remote

From
Jacob Keller <jacob.keller@gmail.com>
Date
Aug 11, 2026, 02:57 UTC
Message-ID
<CA+P7+xpADY-cfzfjmaXboJMdQfcjRLFNoxhWf4weU00-Q0g2rA@mail.gmail.com>
In-Reply-To
<xmqqldb05dlo.fsf@gitster.g>
On Fri, Jul 24, 2026 at 1:36 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
>
> Éric NICOLAS <ccjmne@gmail.com> 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.
Yes, consider it:
Reviewed-by: Jacob Keller <jacob.keller@gmail.com>

Appreciate the fix, I think I had ran into this at some point and it got put on a pile of "to finish debugging later" and never fixed. Thanks!

Show 29 quoted lines
>
> > 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
> > +     )
> > +'
>
>
Previous: Junio C Hamano
Message 5 of 5 in “submodule: resolve insteadof-aliases when matching remote”
  1. submodule: resolve insteadof-aliases when matching remoteÉric NICOLAS, Jul 21, 2026
  2. Junio C HamanoJul 22, 2026
  3. submodule: resolve insteadOf aliases when matching remoteÉric NICOLAS, Jul 23, 2026
  4. Junio C HamanoJul 24, 2026
  5. Jacob KellerAug 11, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.