Skip to content

Commit

Permalink
It seems we need this for branches with a slash in the branch name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 9, 2025
1 parent c8f9b00 commit 4347fd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/monorepos.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ 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)
if(grepl('/', pkg_branch)) # disambiguate branch name with slash
pkg_branch <- paste0('refs/remotes/', pkg_branch)
gert::git_submodule_set_to(submodule = pkg_dir, ref = pkg_branch)
} else {
submodule_head <- sub("^[+-]", "", sys::as_text(submodule$stdout))
Expand Down

0 comments on commit 4347fd7

Please sign in to comment.