/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strbuf: introduce strbuf_getline_{lf,nul}()
[git/git.git]
/
remote-curl.c
diff --git
a/remote-curl.c
b/remote-curl.c
index
f404faf
..
c704857
100644
(file)
--- a/
remote-curl.c
+++ b/
remote-curl.c
@@
-827,7
+827,7
@@
static void parse_fetch(struct strbuf *buf)
die("http transport does not support %s", buf->buf);
strbuf_reset(buf);
die("http transport does not support %s", buf->buf);
strbuf_reset(buf);
- if (strbuf_getline
(buf, stdin, '\n'
) == EOF)
+ if (strbuf_getline
_lf(buf, stdin
) == EOF)
return;
if (!*buf->buf)
break;
return;
if (!*buf->buf)
break;
@@
-940,7
+940,7
@@
static void parse_push(struct strbuf *buf)
die("http transport does not support %s", buf->buf);
strbuf_reset(buf);
die("http transport does not support %s", buf->buf);
strbuf_reset(buf);
- if (strbuf_getline
(buf, stdin, '\n'
) == EOF)
+ if (strbuf_getline
_lf(buf, stdin
) == EOF)
goto free_specs;
if (!*buf->buf)
break;
goto free_specs;
if (!*buf->buf)
break;
@@
-990,7
+990,7
@@
int main(int argc, const char **argv)
do {
const char *arg;
do {
const char *arg;
- if (strbuf_getline
(&buf, stdin, '\n'
) == EOF) {
+ if (strbuf_getline
_lf(&buf, stdin
) == EOF) {
if (ferror(stdin))
error("remote-curl: error reading command stream from git");
return 1;
if (ferror(stdin))
error("remote-curl: error reading command stream from git");
return 1;