Skip to content

Commit 4818336

Browse files
committed
another commit to verify
1 parent a107a0f commit 4818336

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ verify-nested-vendor:
149149

150150
.PHONY: verify-commits
151151
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
153153

154154
.PHONY: verify
155155
verify:

scripts/verify_commits.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,21 @@ function fetch_remotes() {
8585
}
8686

8787
function main() {
88+
git remote -v show
89+
8890
fetch_remotes || { err "failed to fetch remotes" && exit 1; }
8991

9092
local target_branch="${1:-master}"
9193

9294
# get all commits we're introducing into the target branch
9395
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
9599

96100
local -a sr
97101
for commit in "${new_commits[@]}"; do
98-
info "verifying ${commit:0:7}"
102+
info "verifying ${commit:0:7}..."
99103

100104
mapfile -t sr < <(upstream_ref "${commit}" || exit 1)
101105
if (( ${#sr[@]} < 2 )); then # the ref contains a tuple if the values were properly parsed from the commit message

0 commit comments

Comments
 (0)