From daf5ea27839a2275795a93a0d1dd0c01fde2e18e Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 4 Sep 2025 22:10:08 -0400 Subject: [PATCH] update: remove git cleanup in finalized stage (#1210) * updater: remove git cleanup in finalized stage for quicker updates * nah --- system/updated/updated.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/system/updated/updated.py b/system/updated/updated.py index 11928bc24..dfeaf88cb 100755 --- a/system/updated/updated.py +++ b/system/updated/updated.py @@ -7,7 +7,6 @@ import psutil import shutil import signal import fcntl -import time import threading from collections import defaultdict from pathlib import Path @@ -190,15 +189,6 @@ def finalize_update() -> None: run(["git", "reset", "--hard"], FINALIZED) run(["git", "submodule", "foreach", "--recursive", "git", "reset", "--hard"], FINALIZED) - cloudlog.info("Starting git cleanup in finalized update") - t = time.monotonic() - try: - run(["git", "gc"], FINALIZED) - run(["git", "lfs", "prune"], FINALIZED) - cloudlog.event("Done git cleanup", duration=time.monotonic() - t) - except subprocess.CalledProcessError: - cloudlog.exception(f"Failed git cleanup, took {time.monotonic() - t:.3f} s") - set_consistent_flag(True) cloudlog.info("done finalizing overlay")