From c167c4cfaf2de1046130210427f41654ebfcfffa Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 2 Aug 2024 10:09:48 +1200 Subject: [PATCH] FIX Resolve next-patch branch for wildcard repos --- update_command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_command.php b/update_command.php index 9487ea9..1050c48 100644 --- a/update_command.php +++ b/update_command.php @@ -79,7 +79,7 @@ } cmd("git remote add pr-remote $prOrigin", $MODULE_DIR); - $useDefaultBranch = has_wildcard_major_version_mapping() || $branchOption === 'github-default'; + $useDefaultBranch = (has_wildcard_major_version_mapping() && !current_branch_name_is_numeric_style()) || $branchOption === 'github-default'; if ($input->getOption('update-prs')) { // checkout latest existing pr branch