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:
Johannes Sixt
2007-01-23 13:20:18 +01:00
parent 6397c3119e
commit 5bc08ee66f

View File

@@ -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;