Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
test-sha1-array: read command stream with strbuf_getline()
author
Junio C Hamano
<gitster@pobox.com>
Wed, 28 Oct 2015 20:32:10 +0000
(13:32 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 15 Jan 2016 18:35:08 +0000
(10:35 -0800)
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>
test-sha1-array.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a551843
)
diff --git
a/test-sha1-array.c
b/test-sha1-array.c
index 700f3f3422d9014bfc4853e1510e6e7ac8aa9b73..60ea1d5f14e2572df5716da5815143ed26a5be4b 100644
(file)
--- 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];