send-pack: read list of refs with strbuf_getline()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1536dd9c1d
commit
933bea922c
@ -212,7 +212,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
argv_array_push(&all_refspecs, buf);
|
||||
} else {
|
||||
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);
|
||||
strbuf_release(&line);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user