2018-08-02 00:37:21 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
if ! command -v git-validation; then
|
|
|
|
>&2 echo "ERROR: git-validation not found. Install with:"
|
|
|
|
>&2 echo " go get -u github.com/vbatts/git-validation"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
verbosity="${DCO_VERBOSITY--v}"
|
2021-01-29 20:40:09 +01:00
|
|
|
GIT_CHECK_EXCLUDE="./vendor:./script/validate/template" git-validation "$verbosity" -range "$COMMIT_RANGE" -run DCO,short-subject,dangling-whitespace
|