Skip to content

Commit

Permalink
Merge branch 'nl/credential-crlf'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Oct 5, 2020
2 parents 67af910 + 356c473 commit 542b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, '=');

Expand Down

0 comments on commit 542b3c2

Please sign in to comment.