]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t6113-rev-list-bitmap-filters.sh
Merge branch 'vd/fsck-submodule-url-test'
[thirdparty/git.git] / t / t6113-rev-list-bitmap-filters.sh
index 4d8e09167e78d078a6c14e7d51e3a9cb0aa7bf89..459f0d741225522276b84a9a65caaa2e2a985bde 100755 (executable)
@@ -4,6 +4,8 @@ test_description='rev-list combining bitmaps and filters'
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-bitmap.sh
 
+TEST_PASSES_SANITIZE_LEAK=true
+
 test_expect_success 'set up bitmapped repo' '
        # one commit will have bitmaps, the other will not
        test_commit one &&
@@ -141,4 +143,17 @@ test_expect_success 'combine filter with --filter-provided-objects' '
        done <objects
 '
 
+test_expect_success 'bitmap traversal with --unpacked' '
+       git repack -adb &&
+       test_commit unpacked &&
+
+       git rev-list --objects --no-object-names unpacked^.. >expect.raw &&
+       sort expect.raw >expect &&
+
+       git rev-list --use-bitmap-index --objects --all --unpacked >actual.raw &&
+       sort actual.raw >actual &&
+
+       test_cmp expect actual
+'
+
 test_done