Skip to content

The agent that grows with you

test(update): the fork-sync prompt cell gives its fake checkout a .git for the now-mandatory marker (review F24)

Teknium49088df2f94f
diff --git a/tests/hermes_cli/test_update_fetch_failure_classifier.py b/tests/hermes_cli/test_update_fetch_failure_classifier.py
index e6b21ff604f..a8014a90149 100644
--- a/tests/hermes_cli/test_update_fetch_failure_classifier.py
+++ b/tests/hermes_cli/test_update_fetch_failure_classifier.py
@@ -145,6 +145,7 @@ def test_update_and_upstream_network_calls_disable_terminal_prompts(monkeypatch,
return subprocess.CompletedProcess(cmd, 0, upstream if "rev-parse" in cmd else "", "")
monkeypatch.setattr(subprocess, "run", run)
+ (tmp_path / ".git").mkdir() # the fork ff's recovery marker lives there: no marker, no move
update_cmd._git_run(["git"], ["fetch", "origin", "main"], cwd=tmp_path, network=True, check=True)
assert update_cmd_git._sync_with_upstream_if_needed(["git"], tmp_path, assume_yes=True)
from hermes_cli.update_custody import git_subcommand