aboutsummaryrefslogtreecommitdiff
path: root/tests/test-pre-commit-hook.bats
Commit message (Collapse)AuthorAgeFilesLines
* fix(githooks): stop the secret scan passing when it read nothingCraig Jennings31 hours1-0/+126
- The scan piped git diff into grep and swallowed failures with || true. - grep exits 1 on no matches, which is normal, so the guard had to stay. - But it also hid a git failure, leaving nothing to scan and reporting clean. - Now the diff is read on its own and a git failure aborts the commit. - The staged-file list feeding the paren check had the same hole. - New bats tests drive a broken git and pin both paths.