summaryrefslogtreecommitdiff
path: root/t/t5500-fetch-pack.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-25 21:01:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-25 21:01:03 (GMT)
commit62bd0c01057b1cc47f4710090da4c84511f3cc3d (patch)
treea188a091111f84b0550d9340abbd2cc6e540fe97 /t/t5500-fetch-pack.sh
parent51ebd0fe9e089df08eeb5b1547f0585c2de13683 (diff)
parentf59de5d1ff9b0f9d570df99128f41520a281f9a5 (diff)
downloadgit-62bd0c01057b1cc47f4710090da4c84511f3cc3d.zip
git-62bd0c01057b1cc47f4710090da4c84511f3cc3d.tar.gz
git-62bd0c01057b1cc47f4710090da4c84511f3cc3d.tar.bz2
Merge branch 'jk/peel-ref'
Recent optimization broke shallow clones. * jk/peel-ref: upload-pack: load non-tip "want" objects from disk upload-pack: make sure "want" objects are parsed upload-pack: drop lookup-before-parse optimization
Diffstat (limited to 't/t5500-fetch-pack.sh')
-rwxr-xr-xt/t5500-fetch-pack.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
index 354d32c..d574085 100755
--- a/t/t5500-fetch-pack.sh
+++ b/t/t5500-fetch-pack.sh
@@ -364,6 +364,15 @@ EOF
test_cmp count7.expected count7.actual
'
+test_expect_success 'clone shallow with packed refs' '
+ git pack-refs --all &&
+ git clone --depth 1 --branch A "file://$(pwd)/." shallow8 &&
+ echo "in-pack: 4" > count8.expected &&
+ GIT_DIR=shallow8/.git git count-objects -v |
+ grep "^in-pack" > count8.actual &&
+ test_cmp count8.expected count8.actual
+'
+
test_expect_success 'setup tests for the --stdin parameter' '
for head in C D E F
do