http: extract type/subtype portion of content-type
[gitweb.git] / t / t1060-object-corruption.sh
index c65a57cd2297ba3150c83f0ee2bf5fa8d3199a6c..3f8705139d74e8e358ae60cabe5d1cd92d316489 100755 (executable)
@@ -89,6 +89,10 @@ test_expect_success 'clone --local detects corruption' '
        test_must_fail git clone --local bit-error corrupt-checkout
 '
 
+test_expect_success 'error detected during checkout leaves repo intact' '
+       test_path_is_dir corrupt-checkout/.git
+'
+
 test_expect_success 'clone --local detects missing objects' '
        test_must_fail git clone --local missing missing-checkout
 '