Rob Browning
unread,Mar 27, 2026, 7:09:04 PM (12 days ago) Mar 27Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bup-...@googlegroups.com
Revert this for now because if we want it, it will require further
accommodations, e.g. it breaks the test_prune_older generative tests.
The rejection should probably also be moved out of find_live_objects.
This reverts commit 255d8945e98c3b08a479b54bda7022f4c6ade4fe.
---
lib/bup/gc.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/bup/gc.py b/lib/bup/gc.py
index 8ffe73b3..83889280 100644
--- a/lib/bup/gc.py
+++ b/lib/bup/gc.py
@@ -100,8 +100,6 @@ def find_live_objects(existing_count, cat_pipe, refs=None, *,
oid_exists = idx_list.exists if idx_list else None
approx_live_count = 0
scan_refs = refs if refs else list(git.list_refs())
- if not scan_refs:
- raise Exception('no refs; suspicious, refusing to proceed')
ref_n = len(scan_refs)
def progress_msg(ref_i):
return 'scanned %s of %s ref%s (%02.2f%% of all objects)' \
--
2.47.3