use user_path_prep()
in git_vaccinated()
#1560
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
git_sitrep()
errors when trying to check.gitignore
.Apparently this is caused by the call to
git_vaccinated()
The root of the problem seems to be a difference in the path expansion of
~
in git and R.The
core.excludesFile
is configured like so (run in Git-Bash)This is also picked up by usethis
but this is then passed to
read_utf8() |> base::readLines()
, and that expandspath
toI think we have to
user_path_prep()
thepath
first. (Note that I, as a user, supplied thecore.excludesFile
path
, souser_path_prep()
ing it is only consistent withusethis/principles.md
Line 80 in 865e929
That way we can also eliminate the full-path
hackworkaround inensure_core_excludesFile()
(which prevents.gitconfig
from being portable).usethis/R/utils-git.R
Lines 84 to 87 in 865e929
Session info