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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 24, 2026, 20:36 UTC
Message-ID
<xmqqldb05dlo.fsf@gitster.g>
In-Reply-To
<20260723002132.3989727-1-ccjmne@gmail.com>
É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.
Show 26 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: Éric NICOLASNext: Jacob Keller
Message 4 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.