Merge pull request #2516 from nyckyta/crlf-aware-git-credential

credential.c: fix credential reading with regards to CR/LF
This commit is contained in:
Johannes Schindelin
2020-02-13 22:54:14 +01:00

View File

@@ -181,7 +181,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, '=');