Updated marketplace with the reviews plugin
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Regression test for bash-guard.mjs.
|
||||
|
||||
The payload MUST be delivered over a socketpair, not a pipe. Claude Code hands hook children
|
||||
@@ -56,8 +55,6 @@ def check(name, condition, detail=""):
|
||||
|
||||
print("bash-guard over socket stdin:")
|
||||
|
||||
# The regression: before the fd-0 fix this returned None for every input, because the guard
|
||||
# died on readFileSync('/dev/stdin') and exited 0 silently.
|
||||
r = run_guard(bash('git commit -m "hook test"'))
|
||||
check("git commit is denied", decision(r) == "deny", f"got {decision(r)!r}")
|
||||
check("denial names the jj equivalent", "jj describe" in reason(r), f"got {reason(r)!r}")
|
||||
|
||||
Reference in New Issue
Block a user