Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-12-11 01:35:08 +0300
committerJunio C Hamano <gitster@pobox.com>2021-12-11 01:35:08 +0300
commita9c84980d0e55fa7802be4b02b12801ed7cd06d6 (patch)
tree87aa1ccaaef1133fc96429860ee745558cd150d9 /pack-bitmap.c
parentd1305bd3cf64743a0eda8ee16fc15b531f43dd25 (diff)
parent875da7f061bf141aa6bf2c34afad1cf16d179e17 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-bitmap.c b/pack-bitmap.c
index a56ceb9441..f772d3cb7f 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++) {