Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-10-06 00:01:56 +0300
committerJunio C Hamano <gitster@pobox.com>2020-10-06 00:01:56 +0300
commit542b3c2573c7682e9ffebe755272c7e39651f9ae (patch)
tree8395577c31e6eda8a21b03b45d636dc7ff7f1470
parent67af910276596ffeb52462914e695d77e451d2ba (diff)
parent356c473295097f4aeaacc1a2dcd70271b7080788 (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.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, '=');