Skip to content

Commit

Permalink
suppress git_protocol message in git_sitrep (#2039)
Browse files Browse the repository at this point in the history
* 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()
  • Loading branch information
thomascwells authored Aug 15, 2024
1 parent fa847b5 commit 716fb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/git.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 716fb14

Please sign in to comment.