diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-10 22:35:08 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-10 22:35:08 (GMT) |
commit | a9c84980d0e55fa7802be4b02b12801ed7cd06d6 (patch) | |
tree | 87aa1ccaaef1133fc96429860ee745558cd150d9 /pack-bitmap.c | |
parent | d1305bd3cf64743a0eda8ee16fc15b531f43dd25 (diff) | |
parent | 875da7f061bf141aa6bf2c34afad1cf16d179e17 (diff) | |
download | git-a9c84980d0e55fa7802be4b02b12801ed7cd06d6.zip git-a9c84980d0e55fa7802be4b02b12801ed7cd06d6.tar.gz git-a9c84980d0e55fa7802be4b02b12801ed7cd06d6.tar.bz2 |
Merge branch 'jk/test-bitmap-fix'
Tighten code for testing pack-bitmap.
* jk/test-bitmap-fix:
test_bitmap_hashes(): handle repository without bitmaps
Diffstat (limited to 'pack-bitmap.c')
-rw-r--r-- | pack-bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c index a56ceb9..f772d3c 100644 --- a/pack-bitmap.c +++ b/pack-bitmap.c @@ -1759,7 +1759,7 @@ int test_bitmap_hashes(struct repository *r) struct object_id oid; uint32_t i, index_pos; - if (!bitmap_git->hashes) + if (!bitmap_git || !bitmap_git->hashes) goto cleanup; for (i = 0; i < bitmap_num_objects(bitmap_git); i++) { |