userdiff: add a builtin pattern for dts files
[gitweb.git] / t / t7417-submodule-path-url.sh
index 638293f0dab1c69b2f984b69a8bf96a9c2c98de8..756af8c4d6fbd1ba9fb2e4d6fd5b8ae9ddfc34e1 100755 (executable)
@@ -17,4 +17,12 @@ 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_done