diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-11-13 22:37:20 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-11-13 22:37:20 +0900 |
commit | bce4fc60caca82af9e02983abcbbc348d2aadfe4 (patch) | |
tree | d42a084d047ddcd6298cfccb223aa3ba4b3f812f /t/t1060-object-corruption.sh | |
parent | Merge branch 'ds/test-multi-pack-index' (diff) | |
parent | index-pack tests: don't leave test repo dirty at end (diff) | |
download | tgif-bce4fc60caca82af9e02983abcbbc348d2aadfe4.tar.xz |
Merge branch 'ab/pack-tests-cleanup'
A couple of tests used to leave the repository in a state that is
deliberately corrupt, which have been corrected.
* ab/pack-tests-cleanup:
index-pack tests: don't leave test repo dirty at end
pack-objects tests: don't leave test .git corrupt at end
pack-objects test: modernize style
Diffstat (limited to 't/t1060-object-corruption.sh')
-rwxr-xr-x | t/t1060-object-corruption.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t1060-object-corruption.sh b/t/t1060-object-corruption.sh index ac1f189fd2..4feb65157d 100755 --- a/t/t1060-object-corruption.sh +++ b/t/t1060-object-corruption.sh @@ -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 |