remote.c: read $GIT_DIR/remotes/* with strbuf_getline()

These files can be edited with a DOS editor, leaving CR at the end of the line if read with strbuf_getline(). Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 28, 2015 at 13:27 UTC 18814d0e2d7d5924a799bcf0cae3a0aaba569613
1 file changed +1 -1
remote.c
+1 -1
@@ -256,7 +256,7 @@ static void read_remotes_file(struct remote *remote)
256 if (!f)
257 return;
258 remote->origin = REMOTE_REMOTES;
259 - while (strbuf_getline_lf(&buf, f) != EOF) {
259 + while (strbuf_getline(&buf, f) != EOF) {
260 const char *v;
261
262 strbuf_rtrim(&buf);