Commit 49fd700
Fix push protection hook blocking pushes when codeant CLI is unavailable
The fallback branch in the cliPath hook used && which caused non-zero
exit when neither the bundled CLI nor global codeant was found, blocking
pushes even though no scan ran. Changed to || exit 0 to match the
non-cliPath branch behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 010fe50 commit 49fd700
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments