upload-pack: make sure "want" objects are parsed
[gitweb.git] / t / t5500-fetch-pack.sh
index e80a2af348565a0a3d001ef28cb76427acfee495..e202383e4f289bfb78ce2a960c522cc4c04103d8 100755 (executable)
@@ -331,6 +331,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