mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-19 12:01:05 -05:00
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:
@@ -202,7 +202,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, '=');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user