mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
Strip \r from the input.
Sometimes CRLF ends up in FETCH_HEAD. As a consequence, the fetch source '.' is not recognized as a special case.
This commit is contained in:
@@ -95,6 +95,8 @@ static int handle_line(char *line)
|
||||
return 3;
|
||||
|
||||
if (line[len - 1] == '\n')
|
||||
line[len - 1] = 0, --len;
|
||||
if (line[len - 1] == '\r')
|
||||
line[len - 1] = 0;
|
||||
line += 42;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user