From e5ccf4a26c7ce21246167657acda2b4f63c15244 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 26 Sep 2026 21:19:28 -0700 Subject: [PATCH] fix(update): look up git through the hermes_platform resolver expose_pm_git() probed with a bare shutil.which, which the managed-runtime resolution guard rejects outside hermes_platform/. Route the lookup through hermes_platform.resolver.locate_command instead. --- hermes_cli/_subprocess_compat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hermes_cli/_subprocess_compat.py b/hermes_cli/_subprocess_compat.py index 096995a538..3fe7aaab89 100644 --- a/hermes_cli/_subprocess_compat.py +++ b/hermes_cli/_subprocess_compat.py @@ -383,7 +383,11 @@ def expose_pm_git() -> None: the PATH. A machine with a working git is untouched. Raises what ``pm.ensure`` raises. """ - if sys.platform != "win32" or shutil.which("git"): + if sys.platform != "win32": + return + from hermes_platform.resolver import locate_command + + if locate_command("git").found: return from pm import ensure