From d4654ac4b47a1fa0cb5537d0819eb86ba5bd3a18 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 10 Dec 2008 08:37:59 +0100 Subject: [PATCH] Revert "t5303: Do not overwrite an existing pack" This reverts commit 8054a9ec602701973ca4010b5d37d6ec1889ec86. --- t/t5303-pack-corruption-resilience.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/t/t5303-pack-corruption-resilience.sh b/t/t5303-pack-corruption-resilience.sh index 41c83e3477..5132d41309 100755 --- a/t/t5303-pack-corruption-resilience.sh +++ b/t/t5303-pack-corruption-resilience.sh @@ -43,11 +43,8 @@ create_new_pack() { do_repack() { pack=`printf "$blob_1\n$blob_2\n$blob_3\n" | - git pack-objects $@ .git/objects/pack/packtmp` && - packtmp=".git/objects/pack/packtmp-${pack}" && - pack=".git/objects/pack/pack-${pack}" && - mv "${packtmp}.pack" "${pack}.pack" && - mv "${packtmp}.idx" "${pack}.idx" + git pack-objects $@ .git/objects/pack/pack` && + pack=".git/objects/pack/pack-${pack}" } do_corrupt_object() {