Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress git_protocol message in git_sitrep #2039

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

thomascwells
Copy link
Contributor

Fixes #2034

If the default git communication protocol isn't set, git_protocol() sets a default and messages the user about the chosen default. That message looks confusing in the output bullets for git_sitrep(). This PR suppresses that message.

Putting suppressMessages() directly in the kv_line() call didn't seem to work (maybe something about the environment?), so I split it into two steps.

These chunks were useful for testing changes since I had some of these options set in my user-level .Rprofile:

devtools::load_all()

options("usethis.protocol" = NULL)
git_protocol()

options("usethis.protocol" = NULL)
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.
R/git.R Outdated Show resolved Hide resolved
@jennybc
Copy link
Member

jennybc commented Aug 15, 2024

Thanks!

@jennybc jennybc merged commit 716fb14 into r-lib:main Aug 15, 2024
12 checks passed
@thomascwells thomascwells deleted the fix-funky-sitrep-bullet branch August 15, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Funky bullet in git_sitrep()
2 participants