From d7a53044789c5268a87c99c90d31f48b71534bbb Mon Sep 17 00:00:00 2001 From: mastercoms Date: Tue, 4 Aug 2020 15:10:41 -0400 Subject: [PATCH] use split for commit graph git gc at the end of multi pack --- pbpy/pbtools.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pbpy/pbtools.py b/pbpy/pbtools.py index c11c14d..fe6e368 100644 --- a/pbpy/pbtools.py +++ b/pbpy/pbtools.py @@ -254,10 +254,17 @@ def maintain_repo(): run_non_blocking("git lfs dedup") # update commit graph with Bloom filter - run_non_blocking("git commit-graph write --reachable --changed-paths") + run_non_blocking("git commit-graph write --split --reachable --changed-paths") # update multi pack index batch_size = 2 * 1024 * 1024 * 1024 - run_non_blocking("git multi-pack-index write", "git multi-pack-index expire", "git multi-pack-index verify", f"git multi-pack-index repack --batch-size={batch_size}", "git multi-pack-index verify") + run_non_blocking( + "git multi-pack-index write", + "git multi-pack-index expire", + "git multi-pack-index verify", + f"git multi-pack-index repack --batch-size={batch_size}", + "git multi-pack-index verify", + "git gc" + ) def resolve_conflicts_and_pull(retry_count=0, max_retries=1):