Skip to content

Commit

Permalink
Styled package
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Robot committed Sep 12, 2024
1 parent aaf5c79 commit d234f90
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 d234f90

Please sign in to comment.