Skip to content

Commit 2d38c8a

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 8c641d9 + 2fe71c3 commit 2d38c8a

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
@@ -176,7 +176,7 @@ int credential_read(struct credential *c, FILE *fp)
176176
{
177177
struct strbuf line = STRBUF_INIT;
178178

179-
while (strbuf_getline_lf(&line, fp) != EOF) {
179+
while (strbuf_getline(&line, fp) != EOF) {
180180
char *key = line.buf;
181181
char *value = strchr(key, '=');
182182

0 commit comments

Comments
 (0)