Skip to content

Commit

Permalink
Merge pull request #289 from ropensci/style_pkg
Browse files Browse the repository at this point in the history
Style package
  • Loading branch information
b-rodrigues authored Sep 12, 2024
2 parents aaf5c79 + d234f90 commit a0367da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/nix_hash.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ hash_git <- function(repo_url, commit) {
slash <- "/"
}

if(grepl("github", repo_url)){
if (grepl("github", repo_url)) {
url <- paste0(repo_url, slash, "archive/", commit, ".tar.gz")
} else if(grepl("gitlab", repo_url)){
} else if (grepl("gitlab", repo_url)) {
url <- paste0(repo_url, slash, "-/archive/", commit, ".tar.gz")
}

Expand Down

0 comments on commit a0367da

Please sign in to comment.