send-pack: read list of refs with strbuf_getline()

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 28, 2015 at 14:00 UTC 933bea922c202a7ff9b133a5cca4a805a7013aa2
1 file changed +1 -1
builtin/send-pack.c
+1 -1
@@ -212,7 +212,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
212 argv_array_push(&all_refspecs, buf);
213 } else {
214 struct strbuf line = STRBUF_INIT;
215 - while (strbuf_getline_lf(&line, stdin) != EOF)
215 + while (strbuf_getline(&line, stdin) != EOF)
216 argv_array_push(&all_refspecs, line.buf);
217 strbuf_release(&line);
218 }