summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-28 13:36:00 -0700
committerJunio C Hamano <gitster@pobox.com>2016-01-15 10:35:06 -0800
commit692dfdfa622c6286999609a4fef59724124ca794 (patch)
treeb9f9e221a14aca27b7e8723d1fdbcace95ae20fa /transport-helper.c
parent3f163962282d2d8bea914c32d81ad38544044f78 (diff)
downloadgit-692dfdfa622c6286999609a4fef59724124ca794.tar.gz
transport-helper: read helper response with strbuf_getline()
Our implementation of helpers never use CRLF line endings, and they do not depend on the ability to place a CR as payload at the end of the line, so this is essentially a no-op for in-tree users. However, this allows third-party implementation of helpers to give us their line with CRLF line ending (they cannot expect us to feed CRLF to them, though). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index e45d88f1d7..a6bff8b308 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -54,7 +54,7 @@ static int recvline_fh(FILE *helper, struct strbuf *buffer, const char *name)
strbuf_reset(buffer);
if (debug)
fprintf(stderr, "Debug: Remote helper: Waiting...\n");
- if (strbuf_getline_lf(buffer, helper) == EOF) {
+ if (strbuf_getline(buffer, helper) == EOF) {
if (debug)
fprintf(stderr, "Debug: Remote helper quit.\n");
return 1;