Skip to content

The agent that grows with you

refactor(update): drop the gc-fold custody exception (#132927 removed the fold)

Teknium6da284015d75
diff --git a/hermes_cli/gitlock.py b/hermes_cli/gitlock.py
index 38cceecb94b..6da3fbfb8a2 100644
--- a/hermes_cli/gitlock.py
+++ b/hermes_cli/gitlock.py
@@ -19,7 +19,7 @@ from hermes_cli._subprocess_compat import (
noninteractive_git_env,
windows_hide_flags,
)
-from hermes_cli.update_custody import git_argv, run_git, spawn_kwargs
+from hermes_cli.update_custody import run_git
logger = logging.getLogger(__name__)
diff --git a/hermes_cli/update_custody.py b/hermes_cli/update_custody.py
index 36a61610c8c..21f7fb3f764 100644
--- a/hermes_cli/update_custody.py
+++ b/hermes_cli/update_custody.py
@@ -29,10 +29,7 @@ can still write the checkout, and must NOT leak into processes that outlive the
Every updater git runner (``update_cmd._git_run``, ``update_cmd_git._git_run``,
``update_cmd_stash``, ``update_cmd_check``, ``gitlock``, ``update_cmd_commit``,
-``_early_recovery``'s restore) calls :func:`run_git`. One exception keeps its own runner: the
-lazy-fetch pack fold (``gitlock.consolidate_lazy_fetch_packs``) needs ``bounded_probe_run``'s
-tree-kill on timeout, so it takes the same custody through :func:`spawn_kwargs` (``gc`` writes
-packed refs: it is a local mutator and holds the fd, with its repack/pack-objects children).
+``_early_recovery``'s restore) calls :func:`run_git`.
Not covered, on purpose: the read-only release/check readers (``source_releases``,
``source_check``: ``ls-remote``, ``cherry``, ``rev-parse``) run their own probes; they never get
the lock fd and write nothing, so they cannot leak or outlive custody of the checkout.