Merge branch 'jk/virtual-objects-do-exist'
[gitweb.git] / t / t1060-object-corruption.sh
index 807b63b473b45b0814003e6404204d03cf717e4a..bc89371f53436dbf3427f231f560ef1b1f8683f6 100755 (executable)
@@ -117,8 +117,10 @@ test_expect_failure 'clone --local detects misnamed objects' '
 '
 
 test_expect_success 'fetch into corrupted repo with index-pack' '
+       cp -R bit-error bit-error-cp &&
+       test_when_finished "rm -rf bit-error-cp" &&
        (
-               cd bit-error &&
+               cd bit-error-cp &&
                test_must_fail git -c transfer.unpackLimit=1 \
                        fetch ../no-bit-error 2>stderr &&
                test_i18ngrep ! -i collision stderr