mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Merge branch 'nl/credential-crlf'
Loosen the parser in the receiving end of the credential protocol to allow credential helper to terminate lines with CRLF line ending, as well as LF line ending. * nl/credential-crlf: credential: treat CR/LF as line endings in the credential protocol
This commit is contained in:
commit
542b3c2573
|
@ -202,7 +202,7 @@ int credential_read(struct credential *c, FILE *fp)
|
|||
{
|
||||
struct strbuf line = STRBUF_INIT;
|
||||
|
||||
while (strbuf_getline_lf(&line, fp) != EOF) {
|
||||
while (strbuf_getline(&line, fp) != EOF) {
|
||||
char *key = line.buf;
|
||||
char *value = strchr(key, '=');
|
||||
|
||||
|
|
Loading…
Reference in a new issue