Skip to content

Commit

Permalink
Merge pull request #2516 from nyckyta/crlf-aware-git-credential
Browse files Browse the repository at this point in the history
credential.c: fix credential reading with regards to CR/LF
  • Loading branch information
dscho committed Mar 10, 2020
2 parents 8c641d9 + 2fe71c3 commit 2d38c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential.c
Expand Up @@ -176,7 +176,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 2d38c8a

Please sign in to comment.