From 716fb14329971fc53c527d46c4d6c3f367bae181 Mon Sep 17 00:00:00 2001 From: Thomas Wells Date: Thu, 15 Aug 2024 11:24:06 -0700 Subject: [PATCH] suppress git_protocol message in git_sitrep (#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() --- R/git.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/git.R b/R/git.R index b821b2a80..f7f01b681 100644 --- a/R/git.R +++ b/R/git.R @@ -357,7 +357,7 @@ git_sitrep <- function(tool = c("git", "github"), if (!vaccinated) { ui_bullets(c("i" = "See {.fun usethis::git_vaccinate} to learn more.")) } - kv_line("Default Git protocol", git_protocol()) + kv_line("Default Git protocol", ui_silence(git_protocol())) kv_line("Default initial branch name", init_default_branch) }