Merge branch 'jc/strbuf-getline'
[gitweb.git] / builtin / notes.c
index e1556896f9ea653f562e073f9ec23bfdcd0d4d7b..9d54934d6c4ccf55ed24304a3da5a6fd0f0206ca 100644 (file)
@@ -290,7 +290,7 @@ static int notes_copy_from_stdin(int force, const char *rewrite_cmd)
                t = &default_notes_tree;
        }
 
-       while (strbuf_getline(&buf, stdin, '\n') != EOF) {
+       while (strbuf_getline_lf(&buf, stdin) != EOF) {
                unsigned char from_obj[20], to_obj[20];
                struct strbuf **split;
                int err;