File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ verify-nested-vendor:
149
149
150
150
.PHONY : verify-commits
151
151
verify-commits :
152
- ./scripts/verify_commits.sh $(PULL_BASE_REF ) # see https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md#job-environment-variables
152
+ ./scripts/verify_commits.sh $(PULL_BASE_SHA ) # see https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md#job-environment-variables
153
153
154
154
.PHONY : verify
155
155
verify :
Original file line number Diff line number Diff line change @@ -85,17 +85,21 @@ function fetch_remotes() {
85
85
}
86
86
87
87
function main() {
88
+ git remote -v show
89
+
88
90
fetch_remotes || { err " failed to fetch remotes" && exit 1; }
89
91
90
92
local target_branch=" ${1:- master} "
91
93
92
94
# get all commits we're introducing into the target branch
93
95
local -a new_commits
94
- mapfile -t new_commits < <( git rev-list HEAD " ^${target_branch} " )
96
+ mapfile -t new_commits < <( git rev-list --no-merges HEAD " ^${target_branch} " )
97
+ info " detected ${# new_commits[@]} commits to verify"
98
+ git log -n 3 HEAD
95
99
96
100
local -a sr
97
101
for commit in " ${new_commits[@]} " ; do
98
- info " verifying ${commit: 0: 7} "
102
+ info " verifying ${commit: 0: 7} ... "
99
103
100
104
mapfile -t sr < <( upstream_ref " ${commit} " || exit 1)
101
105
if (( ${# sr[@]} < 2 )) ; then # the ref contains a tuple if the values were properly parsed from the commit message
You can’t perform that action at this time.
0 commit comments