You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vendor/knative.dev/hack/release.sh
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -219,11 +219,15 @@ function prepare_dot_release() {
219
219
# Use the original tag (ie. potentially with a knative- prefix) when determining the last version commit sha
220
220
local github_tag="$(gh_tool release list --json tagName --jq '.[].tagName'| grep "${last_version}")"
221
221
local last_release_commit="$(git rev-list -n 1 "${github_tag}")"
222
-
local last_release_commit_filtered="$(git rev-list --invert-grep --grep '^(?!\s*>).*?\[skip-dot-release\]'-n 1 "${github_tag}")"
222
+
local last_release_commit_filtered="$(git rev-list --invert-grep --grep '^(?!\s*>).*?\[skip-dot-release\]'-n 1 "${github_tag}")"
223
223
local release_branch_commit="$(git rev-list -n 1 upstream/"${RELEASE_BRANCH}")"
224
224
local release_branch_commit_filtered="$(git rev-list --invert-grep --grep '^(?!\s*>).*?\[skip-dot-release\]' -n 1 upstream/"${RELEASE_BRANCH}")"
225
+
225
226
[[ -n"${last_release_commit}" ]] || abort "cannot get last release commit"
226
227
[[ -n"${release_branch_commit}" ]] || abort "cannot get release branch last commit"
228
+
[[ -n"${last_release_commit_filtered}" ]] || abort "cannot get filtered last release commit"
229
+
[[ -n"${release_branch_commit_filtered}" ]] || abort "cannot get filtered release branch last commit"
230
+
227
231
echo"Version ${last_version} is at commit ${last_release_commit}. Comparing using ${last_release_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
228
232
echo"Branch ${RELEASE_BRANCH} is at commit ${release_branch_commit}. Comparing using ${release_branch_commit_filtered}. If it is different is because commits with the [skip-dot-release] flag in their commit body are not being considered."
229
233
if [[ "${last_release_commit_filtered}"=="${release_branch_commit_filtered}" ]];then
0 commit comments