My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a0c8df
)
hash-object: read --stdin-paths with strbuf_getline()
author
Junio C Hamano
<gitster@pobox.com>
Wed, 28 Oct 2015 20:56:23 +0000
(13:56 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 15 Jan 2016 18:24:34 +0000
(10:24 -0800)
The list of paths could have been written with a DOS editor.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/hash-object.c
patch
|
blob
|
history
diff --git
a/builtin/hash-object.c
b/builtin/hash-object.c
index
3bc5ec1
..
ff20395
100644
(file)
--- a/
builtin/hash-object.c
+++ b/
builtin/hash-object.c
@@
-60,7
+60,7
@@
static void hash_stdin_paths(const char *type, int no_filters, unsigned flags,
{
struct strbuf buf = STRBUF_INIT, nbuf = STRBUF_INIT;
- while (strbuf_getline
_lf
(&buf, stdin) != EOF) {
+ while (strbuf_getline(&buf, stdin) != EOF) {
if (buf.buf[0] == '"') {
strbuf_reset(&nbuf);
if (unquote_c_style(&nbuf, buf.buf, NULL))