Skip to content

Commit

Permalink
Update R/git_tools.R
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Kałędkowski <[email protected]>
  • Loading branch information
Nikolas Burkoff and gogonzo authored Nov 10, 2021
1 parent 17a74b6 commit 5d91fa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/git_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ install_external_deps <- function(repo_dir, internal_pkg_deps, ...) {
get_remote_name <- function(git_repo, repo_url) {

# remove the https:// and .git from repo_url
repo_url <- gsub("^.+://", "", repo_url, perl = TRUE)
repo_url <- gsub(".git$", "", repo_url)
repo_url <- gsub("^.+://|.git$", "", repo_url, perl = TRUE)


remotes <- git2r::remotes(git_repo)
Expand Down

0 comments on commit 5d91fa0

Please sign in to comment.