pretty: --format output should honor logOutputEncoding
[gitweb.git] / t / t1060-object-corruption.sh
index e29406e27ae84b2b3c18de18b93014466d6dc0d8..3f8705139d74e8e358ae60cabe5d1cd92d316489 100755 (executable)
@@ -79,7 +79,7 @@ test_expect_success 'clone --no-local --bare detects missing object' '
        test_must_fail git clone --no-local --bare missing missing-transport
 '
 
-test_expect_failure 'clone --no-local --bare detects misnamed object' '
+test_expect_success 'clone --no-local --bare detects misnamed object' '
        test_must_fail git clone --no-local --bare misnamed misnamed-transport
 '
 
@@ -89,7 +89,11 @@ test_expect_success 'clone --local detects corruption' '
        test_must_fail git clone --local bit-error corrupt-checkout
 '
 
-test_expect_failure 'clone --local detects missing objects' '
+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
 '