]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/gc.py
gc: restart catpipe after each new pack
[bup.git] / lib / bup / gc.py
index 446092f9cd70aef8912ef12279a4194f491795dd..c0a1c0e1df489197d66cb58b92229d6d980cf26c 100644 (file)
@@ -138,6 +138,8 @@ def sweep(live_objects, existing_count, cat_pipe, threshold, compression,
             if verbosity:
                 log('removing ' + basename(p) + '\n')
             os.unlink(p)
+        if ns.stale_files:  # So git cat-pipe will close them
+            cat_pipe.restart()
         ns.stale_files = []
 
     writer = git.PackWriter(objcache_maker=None,