mirror of https://github.com/harness/drone.git
precommit modified
parent
f58ceac474
commit
90693f7a10
|
@ -25,7 +25,7 @@ fi
|
|||
# The files are then git-added
|
||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR | grep .go | sed 's| |\\ |g')
|
||||
if [ -n "$FILES" ]; then
|
||||
make check
|
||||
make lint
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error running make check - please fix before committing"
|
||||
echo "if this is a mistake you can skip the checks with 'git commit --no-verify'"
|
||||
|
|
Loading…
Reference in New Issue