connect: advertized capability is not a ref
[gitweb.git] / t / t5310-pack-bitmaps.sh
index d446706e94fb878b471e6deaebba4ec7abc76930..1e376ea39e29774f89e4610b2dbed6b385e460eb 100755 (executable)
@@ -47,6 +47,12 @@ rev_list_tests() {
                test_cmp expect actual
        '
 
+       test_expect_success "counting commits with limit ($state)" '
+               git rev-list --count -n 1 HEAD >expect &&
+               git rev-list --use-bitmap-index --count -n 1 HEAD >actual &&
+               test_cmp expect actual
+       '
+
        test_expect_success "counting non-linear history ($state)" '
                git rev-list --count other...master >expect &&
                git rev-list --use-bitmap-index --count other...master >actual &&
@@ -152,10 +158,6 @@ test_expect_success 'pack with missing parent' '
        git pack-objects --stdout --revs <revs >/dev/null
 '
 
-test_lazy_prereq JGIT '
-       type jgit
-'
-
 test_expect_success JGIT 'we can read jgit bitmaps' '
        git clone . compat-jgit &&
        (