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
Broken with \n in title #493
Conversation
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
…e problem (interactive use only)
Would you be willing to branch off current usethis master and make a new PR? I think the semi-complicated history of master branch in your fork is making the optics of this PR more challenging.
@@ -28,6 +28,9 @@ use_git <- function(message = "Initial commit") { | |||
if (yep(commit_consent_msg)) { | |||
done("Adding files and committing") | |||
git2r::add(r, paths) | |||
if (length(paths) > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel git_uncommitted()
(in the condition for this block) implies that paths
has non-zero length. Have you seen something to the contrary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR part was for #128
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are two different issues, let's split into two PRs then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LIttle swamped now, will within next week or 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK thanks!
Closing in favour of two smaller PRs |
It looks as though 65764fa#diff-4ac879304421b0c163d57d6d4be6b43dL89 changed the
gsub
part of thepkg$Title
forrepo_desc
inuse_github
, which causesgh::gh
to fail if there is a newline\n
.This should revert that behavior.