summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-28 20:56:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-15 18:24:34 (GMT)
commitc0353c78e80434b9385e134c69b54b048c382077 (patch)
tree8acb805eff8cd33f0438c46d98de31a747bfcf8d /builtin
parent1a0c8dfd89475d6bb09ddee8c019cf0ae5b3bdc2 (diff)
downloadgit-c0353c78e80434b9385e134c69b54b048c382077.zip
git-c0353c78e80434b9385e134c69b54b048c382077.tar.gz
git-c0353c78e80434b9385e134c69b54b048c382077.tar.bz2
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>
Diffstat (limited to 'builtin')
-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 3bc5ec1..ff20395 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))