diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-06 00:01:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-06 00:01:56 +0300 |
commit | 542b3c2573c7682e9ffebe755272c7e39651f9ae (patch) | |
tree | 8395577c31e6eda8a21b03b45d636dc7ff7f1470 | |
parent | 67af910276596ffeb52462914e695d77e451d2ba (diff) | |
parent | 356c473295097f4aeaacc1a2dcd70271b7080788 (diff) |
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
-rw-r--r-- | credential.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/credential.c b/credential.c index efc29dc5e1..e5202fbef2 100644 --- a/credential.c +++ b/credential.c @@ -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, '='); |