63
63
case "$heads" in *B*) echo $BTIP > .git/refs/heads/B;; esac
64
64
git-symbolic-ref HEAD refs/heads/`echo $heads | sed -e 's/^\(.\).*$/\1/'`
66
test_expect_success "fsck" 'git-fsck-objects --full > fsck.txt 2>&1'
66
test_expect_success "fsck" 'git-fsck --full > fsck.txt 2>&1'
68
68
test_expect_success 'check downloaded results' \
69
69
'mv .git/objects/pack/pack-* . &&
70
70
p=`ls -1 pack-*.pack` &&
71
71
git-unpack-objects <$p &&
72
git-fsck-objects --full'
74
74
test_expect_success "new object count after $number pull" \
75
75
'idx=`echo pack-*.idx` &&
129
130
pull_to_client 3rd "A" $((1*3)) # old fails
132
test_expect_success "clone shallow" "git-clone --depth 2 . shallow"
134
(cd shallow; git-count-objects -v) > count.shallow
136
test_expect_success "clone shallow object count" \
137
"test \"in-pack: 18\" = \"$(grep in-pack count.shallow)\""
140
sed -e '/^in-pack:/d' -e '/^packs:/d' -e '/: 0$/d' "$1"
143
test_expect_success "clone shallow object count (part 2)" '
144
test -z "$(count_output count.shallow)"
147
test_expect_success "fsck in shallow repo" \
148
"(cd shallow; git-fsck --full)"
155
test_expect_success "pull in shallow repo" \
156
"(cd shallow; git pull .. B)"
158
(cd shallow; git-count-objects -v) > count.shallow
159
test_expect_success "clone shallow object count" \
160
"test \"count: 6\" = \"$(grep count count.shallow)\""
165
test_expect_success "deepening pull in shallow repo" \
166
"(cd shallow; git pull --depth 4 .. B)"
168
(cd shallow; git-count-objects -v) > count.shallow
169
test_expect_success "clone shallow object count" \
170
"test \"count: 12\" = \"$(grep count count.shallow)\""
172
test_expect_success "deepening fetch in shallow repo" \
173
"(cd shallow; git fetch --depth 4 .. A:A)"
175
(cd shallow; git-count-objects -v) > count.shallow
176
test_expect_success "clone shallow object count" \
177
"test \"count: 18\" = \"$(grep count count.shallow)\""
179
test_expect_failure "pull in shallow repo with missing merge base" \
180
"(cd shallow; git pull --depth 4 .. A)"