From 0fd631e8c4f3e9c3dc55fdfa275c22fdc958ff49 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc Date: Fri, 22 Mar 2024 00:28:03 -0600 Subject: [PATCH] Adding git gc and branch cleanup even when the repo is up to date --- repo-converter/build/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repo-converter/build/run.py b/repo-converter/build/run.py index b724295..878ee95 100644 --- a/repo-converter/build/run.py +++ b/repo-converter/build/run.py @@ -846,6 +846,10 @@ def clone_svn_repo(repo_key): if previous_batch_end_revision == last_changed_rev: log(f"{repo_key}; up to date, skipping; local rev {previous_batch_end_revision}, remote rev {last_changed_rev}", "info") + + subprocess_run(cmd_git_garbage_collection) + cleanup_branches_and_tags(local_repo_path) + return else: