Merge branch 'jc/maint-index-pack-keep'
[gitweb.git] / builtin / fetch-pack.c
index 7d5914f9212c194e7f45cffb81540ee297fcb54b..79a611fda1f8b344ce619dd9318695a69eebb695 100644 (file)
@@ -149,7 +149,7 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
                else {
                        /* read from stdin one ref per line, until EOF */
                        struct strbuf line = STRBUF_INIT;
-                       while (strbuf_getline(&line, stdin, '\n') != EOF)
+                       while (strbuf_getline_lf(&line, stdin) != EOF)
                                add_sought_entry(&sought, &nr_sought, &alloc_sought, line.buf);
                        strbuf_release(&line);
                }