Repository navigation
pr-git-2509/kairosci/topic/status-submodule-url-sync-v5
tagged this
01 Dec 21:08
When a submodule URL changes in .gitmodules, the URL cached in the superproject's .git/config can remain stale. This change makes git status report the mismatch and suggest git submodule sync. Relative URLs are resolved as git submodule sync resolves them. For populated submodules, the check follows the remote that git submodule sync would update. Local remote customizations are respected so the advice does not suggest overwriting them. The warning is written to standard error for long, short, and porcelain formats, follows pathspecs, and is suppressed by --ignore-submodules=all. Closes gitgitgadget/git#565 Alessio Attilio (4): submodule: share repository-aware URL resolution status: warn about submodule URL mismatches status: preserve customized submodule remotes status: test submodule URL warnings Documentation/git-status.adoc | 12 +++ builtin/commit.c | 1 + builtin/submodule--helper.c | 60 ++------------- submodule.c | 45 +++++++++++ submodule.h | 12 +++ t/t7508-status.sh | 121 ++++++++++++++++++++++++++++++ wt-status.c | 136 ++++++++++++++++++++++++++++++++++ wt-status.h | 1 + 8 files changed, 335 insertions(+), 53 deletions(-) base-commit: 566b6997dd4710b625c0882cf10a7443bf52d183 Submitted-As: https://lore.kernel.org/git/pull.2509.v5.git.git.1796159338.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2509.git.git.1795774880142.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2509.v2.git.git.1795796162.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2509.v3.git.git.1795814853.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2509.v4.git.git.1795884822.gitgitgadget@gmail.com