diff -ruN git-2.9.3/t/t7416-submodule-dash-url.sh git-2.9.3_patched/t/t7416-submodule-dash-url.sh --- git-2.9.3/t/t7416-submodule-dash-url.sh 2018-10-29 17:34:24.026464641 +0100 +++ git-2.9.3_patched/t/t7416-submodule-dash-url.sh 2018-10-29 17:36:35.839468588 +0100 @@ -20,6 +20,13 @@ test_cmp expect actual ' +test_expect_success 'fsck accepts protected dash' ' + test_when_finished "rm -rf dst" && + git init --bare dst && + git -C dst config transfer.fsckObjects true && + git push dst HEAD +' + test_expect_success 'remove ./ protection from .gitmodules url' ' perl -i -pe "s{\./}{}" .gitmodules && git commit -am "drop protection" @@ -31,4 +38,12 @@ test_i18ngrep ignoring err ' +test_expect_success 'fsck rejects unprotected dash' ' + test_when_finished "rm -rf dst" && + git init --bare dst && + git -C dst config transfer.fsckObjects true && + test_must_fail git push dst HEAD 2>err && + grep gitmodulesUrl err +' + test_done diff -ruN git-2.9.3/t/t7417-submodule-path-url.sh git-2.9.3_patched/t/t7417-submodule-path-url.sh --- git-2.9.3/t/t7417-submodule-path-url.sh 2018-10-29 17:34:24.026464641 +0100 +++ git-2.9.3_patched/t/t7417-submodule-path-url.sh 2018-10-29 17:34:44.272493015 +0100 @@ -17,4 +17,12 @@ test_i18ngrep ignoring err ' +test_expect_success 'fsck rejects unprotected dash' ' + test_when_finished "rm -rf dst" && + git init --bare dst && + git -C dst config transfer.fsckObjects true && + test_must_fail git push dst HEAD 2>err && + grep gitmodulesPath err +' + test_done