We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18d3fa commit d055526Copy full SHA for d055526
R/git-utils.R
@@ -345,7 +345,8 @@ git_config_get <- function(name, global = FALSE) {
345
git_config_set <- function(name, value, global = FALSE) {
346
old <- git_config_get(name, global = global)
347
348
- config <- list(git_repo(), value, global)
+ repo <- if (uses_git()) git_repo() else NULL
349
+ config <- list(repo, value, global)
350
names(config) <- c("repo", name, "global")
351
do.call(git2r::config, config)
352
0 commit comments