Skip to content

Commit 50da708

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #2516 from nyckyta/crlf-aware-git-credential
credential.c: fix credential reading with regards to CR/LF
2 parents 2248a12 + db29d15 commit 50da708

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
@@ -181,7 +181,7 @@ int credential_read(struct credential *c, FILE *fp)
181181
{
182182
struct strbuf line = STRBUF_INIT;
183183

184-
while (strbuf_getline_lf(&line, fp) != EOF) {
184+
while (strbuf_getline(&line, fp) != EOF) {
185185
char *key = line.buf;
186186
char *value = strchr(key, '=');
187187

0 commit comments

Comments
 (0)