Skip to content

Commit

Permalink
bugfix in preferred_protocol()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed May 30, 2024
1 parent 69c947a commit 4677528
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/setup_project.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ preferred_protocol <- function(org) {
config$git$protocol == "https", "https://github.com/%s/%%s.git",
"git@github.com:%s/%%s.git"
) |>
sprintf(config$git$organisation)
sprintf(
ifelse(
config$git$organisation == "", org$get_github, config$git$organisation
)
)
}

#' Function to ask a simple yes no question
Expand Down

0 comments on commit 4677528

Please sign in to comment.