The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(update): drop the gc-fold custody exception (#132927 removed the fold)
Teknium6da284015d75
diff --git a/hermes_cli/gitlock.py b/hermes_cli/gitlock.pyindex 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_gitlogger = logging.getLogger(__name__)diff --git a/hermes_cli/update_custody.py b/hermes_cli/update_custody.pyindex 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 theEvery 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 getthe lock fd and write nothing, so they cannot leak or outlive custody of the checkout.