diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-28 14:00:59 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-14 14:30:41 -0800 |
commit | cfb938a900075e185d42dd4e9267e4ccb818a417 (patch) | |
tree | ecf8a31d6b5fa6f042d7cb432832111e95a9d384 | |
parent | 6a26f2949a334fcb2035ddbd0e625c6698fac5c4 (diff) | |
download | git-cfb938a900075e185d42dd4e9267e4ccb818a417.tar.gz |
send-pack: read list of refs with strbuf_getline()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/send-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c index 8f9f4f148d..5b9dd6a9d8 100644 --- a/builtin/send-pack.c +++ b/builtin/send-pack.c @@ -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); } |