Skip to content

Commit 716fb14

Browse files
authored
suppress git_protocol message in git_sitrep (r-lib#2039)
* suppress git_protocol message in git_sitrep `git_protocol()` sets a default *and* messages the user if the option isn't already set. This message looks confusing in the output for `git_sitrep()`. This commit suppresses that messsage. * replace suppressMessages() with ui_silence()
1 parent fa847b5 commit 716fb14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/git.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ git_sitrep <- function(tool = c("git", "github"),
357357
if (!vaccinated) {
358358
ui_bullets(c("i" = "See {.fun usethis::git_vaccinate} to learn more."))
359359
}
360-
kv_line("Default Git protocol", git_protocol())
360+
kv_line("Default Git protocol", ui_silence(git_protocol()))
361361
kv_line("Default initial branch name", init_default_branch)
362362
}
363363

0 commit comments

Comments
 (0)