зеркало из https://github.com/microsoft/git.git
Merge branch 'jk/test-bitmap-fix'
Tighten code for testing pack-bitmap. * jk/test-bitmap-fix: test_bitmap_hashes(): handle repository without bitmaps
This commit is contained in:
Коммит
a9c84980d0
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче