unpack-objects: call fsck_finish() after fscking objects
[gitweb.git] / t / t7415-submodule-names.sh
index c8ce2f4717f3305c4b82914deab894d849e25836..7fdf5d68bd4ee9b3b57a601047cb4c7e1b3f790f 100755 (executable)
@@ -77,4 +77,11 @@ test_expect_success 'fsck detects evil superproject' '
        test_must_fail git fsck
 '
 
+test_expect_success 'transfer.fsckObjects detects evil superproject (unpack)' '
+       rm -rf dst.git &&
+       git init --bare dst.git &&
+       git -C dst.git config transfer.fsckObjects true &&
+       test_must_fail git push dst.git HEAD
+'
+
 test_done