Skip to content

The agent that grows with you

fix(update): tree-ref probe reads only the exit code, so it needs no text decoding

Tekniumc48393332559
diff --git a/hermes_cli/update_cmd_stash.py b/hermes_cli/update_cmd_stash.py
index c9969eef7ee..2e0f0081a3d 100644
--- a/hermes_cli/update_cmd_stash.py
+++ b/hermes_cli/update_cmd_stash.py
@@ -106,7 +106,7 @@ def _target_tree_paths(git_cmd: list[str], cwd: Path, refs) -> Optional[tuple[se
files: set[str] = set()
read_any = False
for ref in dict.fromkeys(refs):
- resolved = _git_quiet(git_cmd, ["rev-parse", "-q", "--verify", f"{ref}^{{tree}}"], cwd, text=True)
+ resolved = _git_quiet(git_cmd, ["rev-parse", "-q", "--verify", f"{ref}^{{tree}}"], cwd)
if resolved is None:
return None
if resolved.returncode: