Verify changes against upstream vendor/ as well.

This commit is contained in:
David McMahon
2016-05-27 16:27:42 -07:00
parent baaf1b628a
commit 12edc97862
3 changed files with 6 additions and 3 deletions

View File

@@ -333,8 +333,9 @@ kube::util::git_upstream_remote_name() {
kube::util::has_changes_against_upstream_branch() {
local -r git_branch=$1
local -r pattern=$2
local full_branch
readonly full_branch="$(kube::util::git_upstream_remote_name)/${git_branch}"
full_branch="$(kube::util::git_upstream_remote_name)/${git_branch}"
echo "Checking for '${pattern}' changes against '${full_branch}'"
# make sure the branch is valid, otherwise the check will pass erroneously.
if ! git describe "${full_branch}" >/dev/null; then