Skip to content

fix: preserve branch names with "/" in switch_branch#4486

Open
fabio-silva wants to merge 1 commit into
v3from
fix/switch-branch-slash-names
Open

fix: preserve branch names with "/" in switch_branch#4486
fabio-silva wants to merge 1 commit into
v3from
fix/switch-branch-slash-names

Conversation

@fabio-silva

@fabio-silva fabio-silva commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix switch_branch() in ci.py so feature-build branches whose names contain / (e.g. cursor/foo) are found correctly.
  • git ls-remote refs were parsed with split("/")[-1], which dropped the path prefix and made branch lookup fail.

Tests

  • Run a feature build whose submodule branch includes / (e.g. cursor/...) and confirm ci.py switches to that branch without Can't find branch.: PMM-15071 #4483

Parsing ls-remote with split("/")[-1] dropped path prefixes, so
branches like cursor/foo were not found. Use refs/heads/ instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
@JNKPercona

Copy link
Copy Markdown
Collaborator

@JNKPercona

Copy link
Copy Markdown
Collaborator

API tests have succeded: https://pmm.cd.percona.com/job/pmm3-api-tests/6801/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants