Skip to content

pr-git-2509/kairosci/topic/status-submodule-url-sync-v1

tagged this 27 Nov 10:21
From: Alessio Attilio <attilio.alessio@protonmail.com>

When a submodule URL changes in .gitmodules, the URL cached in
.git/config can keep pointing at the old remote. That leaves users
with no indication that later submodule operations may use a
repository different from the one the project declares.

Warn in git status so users can find and sync stale configuration
before it causes a confusing fetch or update. Resolve relative URLs
like git submodule sync does, and leave customized submodule remotes
alone.

Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>

Submitted-As: https://lore.kernel.org/git/pull.2509.git.git.1795774880142.gitgitgadget@gmail.com
Assets 2
Loading