Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
hash-object: read --stdin-paths with strbuf_getline()
[gitweb.git]
/
builtin
/
clone.c
diff --git
a/builtin/clone.c
b/builtin/clone.c
index a0b3cd9e5617b5a3a45dd01c8a2c7af0b2fd9668..29741f44460a6648557ffe4619e71ca64cef3e63 100644
(file)
--- a/
builtin/clone.c
+++ b/
builtin/clone.c
@@
-339,7
+339,7
@@
static void copy_alternates(struct strbuf *src, struct strbuf *dst,
FILE *in = fopen(src->buf, "r");
struct strbuf line = STRBUF_INIT;
- while (strbuf_getline
(&line, in, '\n'
) != EOF) {
+ while (strbuf_getline
_lf(&line, in
) != EOF) {
char *abs_path;
if (!line.len || line.buf[0] == '#')
continue;