summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-28 20:32:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-15 18:35:08 (GMT)
commitf06068c96181f6212e15e32957a3d40c7c7bd43d (patch)
treec73edda194b6413e47331e53ade6a70ee0b194a3
parenta551843129dc4d329d4f7915a9c10120963acd7d (diff)
downloadgit-f06068c96181f6212e15e32957a3d40c7c7bd43d.zip
git-f06068c96181f6212e15e32957a3d40c7c7bd43d.tar.gz
git-f06068c96181f6212e15e32957a3d40c7c7bd43d.tar.bz2
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>
-rw-r--r--test-sha1-array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-sha1-array.c b/test-sha1-array.c
index 700f3f3..60ea1d5 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];