Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jan 15, 2016
1 parent a551843 commit f06068c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-sha1-array.c
Expand Up @@ -11,7 +11,7 @@ int main(int argc, char **argv)
struct sha1_array array = SHA1_ARRAY_INIT;
struct strbuf line = STRBUF_INIT;

while (strbuf_getline_lf(&line, stdin) != EOF) {
while (strbuf_getline(&line, stdin) != EOF) {
const char *arg;
unsigned char sha1[20];

Expand Down

0 comments on commit f06068c

Please sign in to comment.