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 authored Feb 13, 2020
2 parents fae73c7 + d6e35b6 commit 69c22a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,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

1 comment on commit 69c22a9

@Arkham20

This comment was marked as off-topic.

Please sign in to comment.