This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch v3-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-3-test by this push:
new 865375a7e86 [v3-3-test] Fix ambiguous git refspec when pushing
release-candidate constraints (#71181) (#71184)
865375a7e86 is described below
commit 865375a7e8637420410c11ffe511b92916e724a9
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Aug 5 20:05:37 2026 +0530
[v3-3-test] Fix ambiguous git refspec when pushing release-candidate
constraints (#71181) (#71184)
For a release candidate the constraints branch and tag are both named
constraints-<VERSION>, so pushing them by bare name fails with
"src refspec ... matches more than one" whenever both a local branch and
tag of that name exist (e.g. on a re-run after the tag was already created).
Qualify the refspecs so the branch and tag pushes are unambiguous.
(cherry picked from commit 20f6aa09fca5a82415d90d7af0636d0a8d3d40d1)
Co-authored-by: Rahul Vats <[email protected]>
---
.github/workflows/release-constraints.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/release-constraints.yml
b/.github/workflows/release-constraints.yml
index 4eb2f3042ca..94506af6f01 100644
--- a/.github/workflows/release-constraints.yml
+++ b/.github/workflows/release-constraints.yml
@@ -237,13 +237,15 @@ jobs:
- name: "Push ${{ needs.build-info.outputs.target-branch }}"
working-directory: "constraints"
shell: bash
- run: git push origin "${TARGET_BRANCH}"
+ # Qualify as refs/heads/ -- for a release candidate the branch and the
tag share a name
+ # (both constraints-<VERSION>), so a bare refspec is ambiguous
("matches more than one").
+ run: git push origin "refs/heads/${TARGET_BRANCH}"
- name: "Tag constraints-${{ inputs.version }}"
working-directory: "constraints"
shell: bash
run: |
git tag -a "constraints-${VERSION}" -m "Constraints for Apache
Airflow ${VERSION}"
- git push origin "constraints-${VERSION}"
+ git push origin "refs/tags/constraints-${VERSION}"
- name: "Summary"
shell: bash
run: |