New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude commas when pulling the tag out of the git export-subst format string #61068
Exclude commas when pulling the tag out of the git export-subst format string #61068
Conversation
/kind bug |
/approve Thanks @ixdy. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: david-mcmahon, ixdy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/status approved-for-milestone |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
cc @jdumars |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it: the version tag is not guaranteed to be the last item in the ref names substituted into the format string, so we need to be sure not to match on the trailing comma.
For example, v1.9.3 was exported with
HEAD -> release-1.9, tag: v1.9.3, origin/release-1.9
, where we only want to matchv1.9.3
, notv1.9.3,
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #61029, though we need to backport this to all active branches.
Release note:
/assign @david-mcmahon
/priority important-soon