1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-23 14:56:12 +02:00

pack-redundant: delete redundant code

The objects in alt-odb are removed from `all_objects` twice in `load_all_objects`
and `scan_alt_odb_packs`, remove it from the later function.

Signed-off-by: Sun Chao <sunchao9@huawei.com>
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Sun Chao 2019-02-02 21:30:14 +08:00 committed by Junio C Hamano
parent 3011177640
commit 8822859363

View File

@ -545,7 +545,6 @@ static void scan_alt_odb_packs(void)
alt->all_objects);
local = local->next;
}
llist_sorted_difference_inplace(all_objects, alt->all_objects);
alt = alt->next;
}
}