From 911653ce16193bc62b374377f884f27fdbfedbe4 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Thu, 9 Jan 2025 23:54:20 +0100 Subject: [PATCH] It seems we need this for branches with a slash in the branch name. --- R/monorepos.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/monorepos.R b/R/monorepos.R index 7657af0..0e65c89 100644 --- a/R/monorepos.R +++ b/R/monorepos.R @@ -227,6 +227,7 @@ update_one_package <- function(x, update_pkg_remotes = FALSE, cleanup_after = FA git_cmd_assert("submodule", "add", "--force", pkg_url, pkg_dir) if(pkg_branch == '*release') pkg_branch <- update_release_branch(pkg_dir, pkg_url) + gert::git_branch_checkout(pkg_branch, repo = pkg_dir) gert::git_submodule_set_to(submodule = pkg_dir, ref = pkg_branch) } else { submodule_head <- sub("^[+-]", "", sys::as_text(submodule$stdout))