t5311-pack-bitmaps-shallow.sh [plain text]
#!/bin/sh
test_description='check bitmap operation with shallow repositories'
. ./test-lib.sh
test_expect_success 'setup shallow repo' '
echo 1 >file &&
git add file &&
git commit -m orig &&
echo 2 >file &&
git commit -a -m update &&
git clone --no-local --bare --depth=1 . shallow.git &&
echo 1 >file &&
git commit -a -m repeat
'
test_expect_success 'turn on bitmaps in the parent' '
git repack -adb
'
test_expect_success 'shallow fetch from bitmapped repo' '
(cd shallow.git && git fetch)
'
test_done