Run verify-godeps.sh fully if hack/ dir changes

pull/6/head
Christoph Blecker 2017-07-07 21:32:16 -07:00
parent 95a4a5d6eb
commit 2b111c5a55
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
readonly branch=${1:-${KUBE_VERIFY_GIT_BRANCH:-master}}
if ! [[ ${KUBE_FORCE_VERIFY_CHECKS:-} =~ ^[yY]$ ]] && \
! kube::util::has_changes_against_upstream_branch "${branch}" 'Godeps/' && \
! kube::util::has_changes_against_upstream_branch "${branch}" 'vendor/'; then
! kube::util::has_changes_against_upstream_branch "${branch}" 'vendor/' && \
! kube::util::has_changes_against_upstream_branch "${branch}" 'hack/'; then
exit 0
fi