Skip to content

Commit

Permalink
use split for commit graph
Browse files Browse the repository at this point in the history
git gc at the end of multi pack
  • Loading branch information
mastercoms committed Aug 4, 2020
1 parent 5c62416 commit d7a5304
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pbpy/pbtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d7a5304

Please sign in to comment.