diff mbox series

[v8,1/1] pack-redundant: delete redundant code

Message ID 20190130150334.20598-1-16657101987@163.com (mailing list archive)
State New, archived
Headers show
Series [v8,1/1] pack-redundant: delete redundant code | expand

Commit Message

孙超 Jan. 30, 2019, 3:03 p.m. UTC
From: Sun Chao <sunchao9@huawei.com>

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>
---
 builtin/pack-redundant.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/builtin/pack-redundant.c b/builtin/pack-redundant.c
index 0316a400ad..29ff5e99cb 100644
--- a/builtin/pack-redundant.c
+++ b/builtin/pack-redundant.c
@@ -492,7 +492,6 @@  static void scan_alt_odb_packs(void)
 							alt->remaining_objects);
 			local = local->next;
 		}
-		llist_sorted_difference_inplace(all_objects, alt->remaining_objects);
 		alt = alt->next;
 	}
 }