Skip to content

Commit a5587f2

Browse files
cliffhallclaude
andcommitted
test(git): expect the platform's form of / in the outside-repository message
repo_path is a Path parameter, so on Windows "/" reaches the guard as "\\" and the message echoes that. Fixes Test git (Windows) on #5175. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 2b2e2a2 commit a5587f2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/git/tests/test_eras.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ async def test_tool_failure_is_an_is_error_result_in_each_era(
182182
)
183183
assert outside.is_error is True
184184
assert text_of(outside) == (
185-
"Error executing tool git_status: Repository path '/' is outside the "
186-
f"allowed repository '{repo_dir(repo)}'"
185+
# repo_path is a Path parameter, so the message echoes the platform's
186+
# form of "/" ("\\" on Windows).
187+
f"Error executing tool git_status: Repository path '{Path('/')}' is "
188+
f"outside the allowed repository '{repo_dir(repo)}'"
187189
)
188190

189191

0 commit comments

Comments
 (0)