aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-25 21:52:38 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-25 21:52:38 -0400
commit4c5e08f26dc5deda5852a3a544e7ed22c003a376 (patch)
tree90e3b61638df06e55ff045616fd15f9edf55f29c
parenta3e8de1994d18e8576264e891abe70e94bcd9ca0 (diff)
downloadgrokmirror-4c5e08f26dc5deda5852a3a544e7ed22c003a376.tar.gz
Fix logic error for ref repacks
This resulted in pack-refs never running. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xgrokmirror/fsck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grokmirror/fsck.py b/grokmirror/fsck.py
index 3cf86dd..8e25b0b 100755
--- a/grokmirror/fsck.py
+++ b/grokmirror/fsck.py
@@ -231,7 +231,7 @@ def run_git_repack(fullpath, config, level=1, prune=True):
run_git_commit_graph(fullpath)
# only repack refs on full repacks
- if level > 2:
+ if level > 1:
# repacking refs requires a separate command, so run it now
args = ['pack-refs', '--all']
logger.info(' repack : repacking refs')