Skip to content

Commit 1a95ceb

Browse files
committed
Merge branch 'nl/credential-crlf' into seen
Loosen the parser in credential-store to tolerate CRLF line endings, even though our code always write with LF line endings and the file is not designed to be edited by hand. * nl/credential-crlf: credential: treat CR/LF as line endings in the credential protocol
2 parents 2c55e09 + 356c473 commit 1a95ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

credential.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ int credential_read(struct credential *c, FILE *fp)
202202
{
203203
struct strbuf line = STRBUF_INIT;
204204

205-
while (strbuf_getline_lf(&line, fp) != EOF) {
205+
while (strbuf_getline(&line, fp) != EOF) {
206206
char *key = line.buf;
207207
char *value = strchr(key, '=');
208208

0 commit comments

Comments
 (0)