mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
16 lines
213 B
Bash
16 lines
213 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NOCOMMIT_PRESENT=$(git grep --ignore-case nocommit)
|
|
|
|
if [ -n $NOCOMMIT_PRESENT ]
|
|
then
|
|
echo "#nocommit tagged - commit prevented"
|
|
echo $NOCOMMIT_PRESENT
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|
|
|
|
|