diff --git a/.claude/hooks/git_gate.py b/.claude/hooks/git_gate.py index afdb2bb8..d367291f 100755 --- a/.claude/hooks/git_gate.py +++ b/.claude/hooks/git_gate.py @@ -148,9 +148,9 @@ def main(): return # Subprocess bypass detection — scan raw command for git/gh inside - # subprocess.run/call/Popen/os.system patterns before stripping quotes. - if re.search(r"subprocess\.\w+|os\.system|os\.popen|Popen", cmd): - if re.search(r"['\"]git['\"]|['\"]gh['\"]", cmd): + # subprocess/os execution patterns before stripping quotes. + if re.search(r"subprocess\.\w+|os\.system|os\.popen|Popen|(?