aboutsummaryrefslogtreecommitdiff
path: root/t/t5500-fetch-pack.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-24 16:47:24 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-24 18:08:02 -0800
commitaf7cf268f0bf8d4216f9c11d1cb0082cb3550f61 (patch)
treefb4cc3c94a6c793122e02c3797b04f6716549e62 /t/t5500-fetch-pack.sh
parent9e10fd1ac0bb50202138efb9291568160dacd7ab (diff)
downloadgit-af7cf268f0bf8d4216f9c11d1cb0082cb3550f61.tar.gz
git-af7cf268f0bf8d4216f9c11d1cb0082cb3550f61.tar.xz
fetch-pack: remove --keep-auto and make it the default.
This makes git-fetch over git native protocol to automatically decide to keep the downloaded pack if the fetch results in more than 100 objects, just like receive-pack invoked by git-push does. This logic is disabled when --keep is explicitly given from the command line, so that a very small clone still keeps the downloaded pack as before. The 100 threshold can be adjusted with fetch.unpacklimit configuration. We might want to introduce transfer.unpacklimit to consolidate the two unpacklimit variables, which will be a topic for the next patch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5500-fetch-pack.sh')
-rwxr-xr-xt/t5500-fetch-pack.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
index ef78df67e..7fd651b1c 100755
--- a/t/t5500-fetch-pack.sh
+++ b/t/t5500-fetch-pack.sh
@@ -97,7 +97,8 @@ pull_to_client () {
(
mkdir client &&
cd client &&
- git-init 2>> log2.txt
+ git-init 2>> log2.txt &&
+ git repo-config fetch.unpacklimit 0
)
add A1