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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user