summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-10-05 14:01:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-05 14:01:56 -0700
commit542b3c2573c7682e9ffebe755272c7e39651f9ae (patch)
tree8395577c31e6eda8a21b03b45d636dc7ff7f1470
parentMerge branch 'sn/fast-import-doc' (diff)
parentcredential: treat CR/LF as line endings in the credential protocol (diff)
downloadtgif-542b3c2573c7682e9ffebe755272c7e39651f9ae.tar.xz
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.c2
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, '=');