2018-08-01 22:37:21 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail
|
|
|
|
|
|
|
|
if ! command -v git-validation; then
|
|
|
|
>&2 echo "ERROR: git-validation not found. Install with:"
|
2021-07-06 03:43:13 +00:00
|
|
|
>&2 echo " go install github.com/vbatts/git-validation@latest"
|
2018-08-01 22:37:21 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
verbosity="${DCO_VERBOSITY--v}"
|
2019-10-09 12:02:21 +00:00
|
|
|
GIT_CHECK_EXCLUDE="./vendor:./script/validate/template" git-validation "$verbosity" -range "5b98226afefa11a06ef0c652af4995177c0efda0..HEAD" -run DCO,short-subject,dangling-whitespace
|