Skip to content

Commit a9c8498

Browse files
committed
Merge branch 'jk/test-bitmap-fix'
Tighten code for testing pack-bitmap. * jk/test-bitmap-fix: test_bitmap_hashes(): handle repository without bitmaps
2 parents d1305bd + 875da7f commit a9c8498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pack-bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ int test_bitmap_hashes(struct repository *r)
17591759
struct object_id oid;
17601760
uint32_t i, index_pos;
17611761

1762-
if (!bitmap_git->hashes)
1762+
if (!bitmap_git || !bitmap_git->hashes)
17631763
goto cleanup;
17641764

17651765
for (i = 0; i < bitmap_num_objects(bitmap_git); i++) {

0 commit comments

Comments
 (0)