Skip to content

Commit f06068c

Browse files
committed
test-sha1-array: read command stream with strbuf_getline()
The input to this command comes from a pipeline in t0064, whose upstream has bunch of "echo"s. It is not unreasonable to expect that it may be fed CRLF lines on DOSsy systems. Signed-off-by: Junio C Hamano <[email protected]>
1 parent a551843 commit f06068c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-sha1-array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main(int argc, char **argv)
1111
struct sha1_array array = SHA1_ARRAY_INIT;
1212
struct strbuf line = STRBUF_INIT;
1313

14-
while (strbuf_getline_lf(&line, stdin) != EOF) {
14+
while (strbuf_getline(&line, stdin) != EOF) {
1515
const char *arg;
1616
unsigned char sha1[20];
1717

0 commit comments

Comments
 (0)