summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-28 13:56:23 -0700
committerJunio C Hamano <gitster@pobox.com>2016-01-14 15:10:53 -0800
commitc5099a16a5a52532fbfb87f74710c04cdf89d63b (patch)
tree4146f2aa079066129b6940b3cf2a15da47c1df86
parentdcba66f10caf3b7c6afc1b2f98657663e0068beb (diff)
downloadgit-c5099a16a5a52532fbfb87f74710c04cdf89d63b.tar.gz
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 <gitster@pobox.com>
-rw-r--r--builtin/hash-object.c2
1 files changed, 1 insertions, 1 deletions
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))