-
Notifications
You must be signed in to change notification settings - Fork 534
unquoted '\' must be followed by new line #681
Comments
Hey @fredcarle, Can you share any code or links to the repository you are trying to open so we can try and reproduce the issue? |
Unfortunately I can't share the link to the repo since it's a private one. But here is the simple code I was using for testing.
|
I've seen this before. In one instance, it was caused by trying to read a config written by Git tower: keybase/client#8812 The parser used to read the git config files really doesn't like backslashes. |
That would makes sense since I'm using Tower |
Seems like there is some benefit in extending the git config parser to handle backslashes more gracefully. |
This is especially problematic on Windows, because the likelihood of having slashes is much higher (Paths, for example) |
I'm running into this too, fortunately the repo I'm seeing it on is open source: https://github.com/Southclaws/samp-ctime The full error I'm getting is Could I quickly fix this by modifying some internal .git file? I'm assuming the 16:8 is a line:column in some file. Edit: yes I removed some outdated lines from |
Resolved this by removing all cols contain |
It bails out on the following
This is perfectly valid and parsable by the original Git parser (https://github.com/git/git/blob/master/config.c#L537-L560). |
Has anyone seen this before? I get this
unquoted '\' must be followed by new line
error on some of the repo I try to open withgit.PlainOpen()
.The text was updated successfully, but these errors were encountered: