Skip to content

Commit c5f7faf

Browse files
committed
Fix detection of upstream version branches with continue
cherry_picker has recently grown support for prefixed version branches (like stable-2.6). The --continue support had a bug with those branches where it wouldn't account for the fact that those branches could have extra dashes in them and thus mixing branch name with sha. This commit should fix those situations.
1 parent 7f0e4b1 commit c5f7faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cherry_picker/cherry_picker/cherry_picker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def get_base_branch(cherry_pick_branch):
422422
"""
423423
return '2.7' from 'backport-sha-2.7'
424424
"""
425-
prefix, sep, base_branch = cherry_pick_branch.rpartition('-')
425+
prefix, sha, base_branch = cherry_pick_branch.split('-', 2)
426426
return base_branch
427427

428428

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy