send-pack: read list of refs with strbuf_getline()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -212,7 +212,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
|||||||
argv_array_push(&all_refspecs, buf);
|
argv_array_push(&all_refspecs, buf);
|
||||||
} else {
|
} else {
|
||||||
struct strbuf line = STRBUF_INIT;
|
struct strbuf line = STRBUF_INIT;
|
||||||
while (strbuf_getline_lf(&line, stdin) != EOF)
|
while (strbuf_getline(&line, stdin) != EOF)
|
||||||
argv_array_push(&all_refspecs, line.buf);
|
argv_array_push(&all_refspecs, line.buf);
|
||||||
strbuf_release(&line);
|
strbuf_release(&line);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user