Skip to content

Commit

Permalink
respect auth_token=NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Nov 22, 2024
1 parent 85004f7 commit 76ccfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/install-github.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ remote_package_name.github_remote <- function(remote, ..., use_local = TRUE,
remote_sha.github_remote <- function(remote, ..., use_curl = !is_standalone() && pkg_installed("curl")) {
tryCatch(
github_commit(username = remote$username, repo = remote$repo,
host = remote$host, ref = remote$ref, pat = remote$auth_token %||% github_pat(), use_curl = use_curl),
host = remote$host, ref = remote$ref, pat = remote$auth_token, use_curl = use_curl),

# 422 errors most often occur when a branch or PR has been deleted, so we
# ignore the error in this case
Expand Down

0 comments on commit 76ccfb2

Please sign in to comment.