summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-11-06 02:13:37 +0000
committerClaude <noreply@anthropic.com>2026-11-06 02:13:37 +0000
commitaa5665a817bc2a48d48084c4192a083995aa024d (patch)
treed84e162004cdd3e630c583665ad2e8a465852282 /plugins
parentcb124af4950c9f576410091b1590b84c095c0eb8 (diff)
security-guidance: fail the snapshot in the no-edit-record test the way main takes it
The turn baseline no longer uses git stash create, so the git stand-in fails write-tree instead.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/security-guidance/tests/test_stop_finding_no_edit_record.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/security-guidance/tests/test_stop_finding_no_edit_record.py b/plugins/security-guidance/tests/test_stop_finding_no_edit_record.py
index d2dd17dc..45239cfe 100644
--- a/plugins/security-guidance/tests/test_stop_finding_no_edit_record.py
+++ b/plugins/security-guidance/tests/test_stop_finding_no_edit_record.py
@@ -242,7 +242,7 @@ def test_earlier_work_reviewed_without_a_snapshot_is_named(hook_env, stub_api, w
shim.mkdir()
git = shutil.which("git")
(shim / "git").write_text(
- f'#!/bin/sh\nfor a in "$@"; do [ "$a" = stash ] && exit 1; done\nexec "{git}" "$@"\n')
+ f'#!/bin/sh\nfor a in "$@"; do [ "$a" = write-tree ] && exit 1; done\nexec "{git}" "$@"\n')
(shim / "git").chmod(0o755)
broken = dict(hook_env, PATH=f"{shim}{os.pathsep}{hook_env['PATH']}")
(repo / "app.py").write_text(VULN_PY) # uncommitted work from before the turn