This series of patch covers mainly two areas
1. The bug report where after submodule was moved and the path remained same
when a new submodule was added then it directly was overwriting the
moved submodule as the present submodule since the path matched.
2. The configure_added_submodule was writing submodule.<name>.active
entry, even when the new path is already matched by submodule.active
patterns.
Below is a helper function and 2 new tests with fixes of the above problem.
K Jayatheerth (2):
submodule: prevent overwriting .gitmodules entry on path reuse
submodule: skip redundant active entries when pattern covers path
builtin/submodule--helper.c | 60 +++++++++++++++++++++++++++-------
t/t7400-submodule-basic.sh | 23 +++++++++++++
t/t7413-submodule-is-active.sh | 15 +++++++++
3 files changed, 87 insertions(+), 11 deletions(-)
--
2.49.GIT