From: Junio C Hamano Date: Wed, 28 Oct 2015 20:56:23 +0000 (-0700) Subject: hash-object: read --stdin-paths with strbuf_getline() X-Git-Tag: v2.8.0-rc0~85^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0353c78e80434b9385e134c69b54b048c382077;p=thirdparty%2Fgit.git hash-object: read --stdin-paths with strbuf_getline() The list of paths could have been written with a DOS editor. Signed-off-by: Junio C Hamano --- diff --git a/builtin/hash-object.c b/builtin/hash-object.c index 3bc5ec1d21..ff20395c69 100644 --- a/builtin/hash-object.c +++ b/builtin/hash-object.c @@ -60,7 +60,7 @@ static void hash_stdin_paths(const char *type, int no_filters, unsigned flags, { struct strbuf buf = STRBUF_INIT, nbuf = STRBUF_INIT; - while (strbuf_getline_lf(&buf, stdin) != EOF) { + while (strbuf_getline(&buf, stdin) != EOF) { if (buf.buf[0] == '"') { strbuf_reset(&nbuf); if (unquote_c_style(&nbuf, buf.buf, NULL))