diff options
author | Allen Webb <allenwebb@google.com> | 2021-10-07 10:42:38 -0500 |
---|---|---|
committer | Allen Webb <allenwebb@google.com> | 2021-10-14 12:27:12 +0000 |
commit | 4ee4a45d03075c3576afcc08b654a057decaf6be (patch) | |
tree | 059850615eaf66eb369c328d36b48db0b94165a9 /subcmds/init.py | |
parent | 0f6f16ed1784049a11be5be364879affe35ff921 (diff) | |
download | git-repo-4ee4a45d03075c3576afcc08b654a057decaf6be.tar.gz |
subcmds/sync: Use pack-refs instead of gc for redundant gitdirs.
Previously `git gc` was being run on every gitdir even when they shared
the same objects. Instead only call it once and use pack-refs for the
gitdirs that were not gc'ed.
Bug: https://crbug.com/gerrit/15113
Test: repo sync -j # and check that git pack-refs is called
Change-Id: Icff37ab3ec78cfb44391d8cc7f2d875991532320
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/320275
Tested-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/init.py')
0 files changed, 0 insertions, 0 deletions