]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/gc.py
walk_object: accept a get function instead of catpipe
[bup.git] / lib / bup / gc.py
index 5a351f579750790968e547795b9d54b84dcc4d62..7491b5bc31151a9a5db1d78ab609bd2fae8e1341 100644 (file)
@@ -105,7 +105,7 @@ def find_live_objects(existing_count, cat_pipe, verbosity=0):
         stop_at = lambda x: x.decode('hex') in trees_visited
     approx_live_count = 0
     for ref_name, ref_id in git.list_refs():
-        for item in walk_object(cat_pipe, ref_id.encode('hex'),
+        for item in walk_object(cat_pipe.get, ref_id.encode('hex'),
                                 stop_at=stop_at,
                                 include_data=None):
             # FIXME: batch ids