mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
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 a new issue