Skip to content

Commit c0353c7

Browse files
committed
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 <[email protected]>
1 parent 1a0c8df commit c0353c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/hash-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void hash_stdin_paths(const char *type, int no_filters, unsigned flags,
6060
{
6161
struct strbuf buf = STRBUF_INIT, nbuf = STRBUF_INIT;
6262

63-
while (strbuf_getline_lf(&buf, stdin) != EOF) {
63+
while (strbuf_getline(&buf, stdin) != EOF) {
6464
if (buf.buf[0] == '"') {
6565
strbuf_reset(&nbuf);
6666
if (unquote_c_style(&nbuf, buf.buf, NULL))

0 commit comments

Comments
 (0)