diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-10-28 13:32:10 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-14 15:10:53 -0800 |
commit | 4a79907c12d11c54c52abf2c3db4a7fcaf4338e6 (patch) | |
tree | 234d9b40400296b3945140e105321b5b5bcdf333 | |
parent | d61eab3bb52e20a8184669b9e03f34574684fb5f (diff) | |
download | git-jc/strbuf-gets.tar.gz |
test-sha1-array: read command stream with strbuf_getline()jc/strbuf-gets
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>
-rw-r--r-- | test-sha1-array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-sha1-array.c b/test-sha1-array.c index 700f3f3422..60ea1d5f14 100644 --- a/test-sha1-array.c +++ b/test-sha1-array.c @@ -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]; |