Skip to content

Commit 933bea9

Browse files
committed
send-pack: read list of refs with strbuf_getline()
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1536dd9 commit 933bea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/send-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
212212
argv_array_push(&all_refspecs, buf);
213213
} else {
214214
struct strbuf line = STRBUF_INIT;
215-
while (strbuf_getline_lf(&line, stdin) != EOF)
215+
while (strbuf_getline(&line, stdin) != EOF)
216216
argv_array_push(&all_refspecs, line.buf);
217217
strbuf_release(&line);
218218
}

0 commit comments

Comments
 (0)