index-pack tests: don't leave test repo dirty at end
commitaa984dbe5ea51462a826e3697506c41b6c6c43fb
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 30 Oct 2018 18:43:31 +0000 (30 18:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Oct 2018 02:12:05 +0000 (31 11:12 +0900)
tree34ff43057890d5ad6c3e6822fccb05a451c3b83b
parent228135d9efee6eb1dfac5d78ac24518f53ab093e
index-pack tests: don't leave test repo dirty at end

Change a test added in 51054177b3 ("index-pack: detect local
corruption in collision check", 2017-04-01) so that the repository
isn't left dirty at the end.

Due to the caveats explained in 720dae5a19 ("config doc: elaborate on
fetch.fsckObjects security", 2018-07-27) even a "fetch" that fails
will write to the local object store, so let's copy the bit-error test
directory before running this test.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1060-object-corruption.sh