Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
send-pack: read list of refs with strbuf_getline()
[gitweb.git]
/
builtin
/
notes.c
diff --git
a/builtin/notes.c
b/builtin/notes.c
index 52aa9af74be8d47780d4762185c5cbe09624b382..3775e389635a58f20538b621fd22980a38b78b0d 100644
(file)
--- a/
builtin/notes.c
+++ b/
builtin/notes.c
@@
-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;