Skip to content

Commit a2c3f4e

Browse files
committed
Merge pull request #2516 from nyckyta/crlf-aware-git-credential
credential.c: fix credential reading with regards to CR/LF
2 parents c0bc248 + 1b4b537 commit a2c3f4e

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
@@ -146,7 +146,7 @@ int credential_read(struct credential *c, FILE *fp)
146146
{
147147
struct strbuf line = STRBUF_INIT;
148148

149-
while (strbuf_getline_lf(&line, fp) != EOF) {
149+
while (strbuf_getline(&line, fp) != EOF) {
150150
char *key = line.buf;
151151
char *value = strchr(key, '=');
152152

0 commit comments

Comments
 (0)