diff options
Diffstat (limited to 't/t7417-submodule-path-url.sh')
| -rwxr-xr-x | t/t7417-submodule-path-url.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7417-submodule-path-url.sh b/t/t7417-submodule-path-url.sh index fad9e20dc4..f7e7e94d7b 100755 --- a/t/t7417-submodule-path-url.sh +++ b/t/t7417-submodule-path-url.sh @@ -17,6 +17,14 @@ test_expect_success 'clone rejects unprotected dash' ' 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_expect_success MINGW 'submodule paths disallows trailing spaces' ' git init super && test_must_fail git -C super submodule add ../upstream "sub " && |
