From 62e2a03a7963a2a321009ea796a6c2c0717989ee Mon Sep 17 00:00:00 2001 From: Lars Schneider Date: Wed, 15 Feb 2017 12:17:04 +0100 Subject: submodule config does not apply to upper case submodules? It looks like as if submodule configs ("submodule..*") for submodules with upper case names are ignored. The test cases shows that skipping a submodule during a recursive clone seems not to work. Signed-off-by: Lars Schneider Signed-off-by: Junio C Hamano --- t/t7400-submodule-basic.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 37852f751b..44fabe72d7 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -1131,5 +1131,39 @@ test_expect_success 'submodule helper list is not confused by common prefixes' ' test_cmp expect actual ' +test_expect_failure 'submodule config does not apply to upper case submodules' ' + test_when_finished "rm -rf super lowersub clone-success clone-failure" && + mkdir lowersub && + ( + cd lowersub && + git init && + >t && + git add t && + git commit -m "initial commit lowersub" + ) && + mkdir UPPERSUB && + ( + cd UPPERSUB && + git init && + >t && + git add t && + git commit -m "initial commit UPPERSUB" + ) && + mkdir super && + ( + cd super && + git init && + >t && + git add t && + git commit -m "initial commit super" && + git submodule add ../lowersub && + git submodule add ../UPPERSUB && + git commit -m "add submodules" + ) && + git -c submodule.lowersub.update=none clone --recursive super clone-success 2>&1 | + grep "Skipping submodule" && + git -c submodule.UPPERSUB.update=none clone --recursive super clone-failure 2>&1 | + grep "Skipping submodule" +' test_done -- cgit v1.2.1