There was an error while loading. Please reload this page.
1 parent ea0ddd7 commit cf1bbcbCopy full SHA for cf1bbcb
1 file changed
src/utils/installPushProtectionHook.js
@@ -32,7 +32,7 @@ exec < /dev/tty 2>/dev/null || true
32
if [ -f ${quotedCliPath} ] && command -v node >/dev/null 2>&1; then
33
node ${quotedCliPath} secrets --staged --hook
34
else
35
- command -v codeant >/dev/null 2>&1 || exit 1
+ command -v codeant >/dev/null 2>&1 || exit 0
36
codeant secrets --staged --hook
37
fi
38
${HOOK_MARKER_END}`;
@@ -41,7 +41,7 @@ ${HOOK_MARKER_END}`;
41
# Auto-installed by CodeAnt AI — blocks commits containing secrets.
42
# To disable: delete this hook or run "codeant push-protection disable"
43
exec < /dev/tty 2>/dev/null || true
44
-command -v codeant >/dev/null 2>&1 || exit 1
+command -v codeant >/dev/null 2>&1 || exit 0
45
46
47
}
0 commit comments