Code

t5550: repack everything into one file
authorClemens Buchacher <drizzd@aon.at>
Wed, 4 Jan 2012 15:55:34 +0000 (16:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Jan 2012 18:04:59 +0000 (10:04 -0800)
Subsequently we assume that there is only one pack. Currently this is
true only by accident. Pass '-a -d' to repack in order to guarantee that
assumption to hold true.

The prune-packed command is now redundant since repack -d already calls
it.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5550-http-fetch.sh

index 311a33ca84f693b9410bab9e282ad0ebcae87441..7926ab3c91e2b962760955640b8e8d45796d1e6f 100755 (executable)
@@ -118,8 +118,7 @@ test_expect_success 'http remote detects correct HEAD' '
 test_expect_success 'fetch packed objects' '
        cp -R "$HTTPD_DOCUMENT_ROOT_PATH"/repo.git "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git &&
        (cd "$HTTPD_DOCUMENT_ROOT_PATH"/repo_pack.git &&
-        git --bare repack &&
-        git --bare prune-packed
+        git --bare repack -a -d
        ) &&
        git clone $HTTPD_URL/dumb/repo_pack.git
 '