summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-28 21:00:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-15 18:35:07 (GMT)
commit933bea922c202a7ff9b133a5cca4a805a7013aa2 (patch)
tree6bedbf17b05c0ad28cbe47dadb158e1370462e5c /builtin
parent1536dd9c1df0b7167b139f6666080cc4774ef63f (diff)
downloadgit-933bea922c202a7ff9b133a5cca4a805a7013aa2.zip
git-933bea922c202a7ff9b133a5cca4a805a7013aa2.tar.gz
git-933bea922c202a7ff9b133a5cca4a805a7013aa2.tar.bz2
send-pack: read list of refs with strbuf_getline()
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/send-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index 8f9f4f1..5b9dd6a 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);
}