line |
true |
false |
branch |
49
|
0 |
0 |
if (delim == NULL) { |
55
|
0 |
0 |
if (repo[1] == '~') |
59
|
0 |
0 |
if (delim == NULL) |
70
|
0 |
0 |
if (git_buf_oom(request)) |
81
|
0 |
0 |
if ((error = gen_proto(&request, s->cmd, s->url)) < 0) |
84
|
0 |
0 |
if ((error = git_stream__write_full(s->io, request.ptr, request.size, 0)) < 0) |
106
|
0 |
0 |
if (!s->sent_command && (error = send_command(s)) < 0) |
|
0 |
0 |
if (!s->sent_command && (error = send_command(s)) < 0) |
111
|
0 |
0 |
if ((error = gitno_recv(&buf)) < 0) |
127
|
0 |
0 |
if (!s->sent_command && (error = send_command(s)) < 0) |
|
0 |
0 |
if (!s->sent_command && (error = send_command(s)) < 0) |
138
|
0 |
0 |
if (!stream) |
162
|
0 |
0 |
if (!stream) |
166
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(s); |
176
|
0 |
0 |
if (!s->url) { |
181
|
0 |
0 |
if ((git_socket_stream_new(&s->io, host, port)) < 0) |
184
|
0 |
0 |
GIT_ERROR_CHECK_VERSION(s->io, GIT_STREAM_VERSION, "git_stream"); |
203
|
0 |
0 |
if (!git__prefixcmp(url, prefix_git)) |
206
|
0 |
0 |
if ((error = git_net_url_parse(&urldata, url)) < 0) |
210
|
0 |
0 |
port = urldata.port ? urldata.port : GIT_DEFAULT_PORT; |
216
|
0 |
0 |
if (error < 0) { |
222
|
0 |
0 |
if ((error = git_stream_connect(s->io)) < 0) { |
239
|
0 |
0 |
if (t->current_stream) { |
259
|
0 |
0 |
if (!git__prefixcmp(url, prefix_git)) |
262
|
0 |
0 |
if ((error = git_net_url_parse(&urldata, url)) < 0) |
269
|
0 |
0 |
if (error < 0) { |
276
|
0 |
0 |
if ((error = git_stream_connect(s->io)) < 0) |
291
|
0 |
0 |
if (t->current_stream) { |
330
|
0 |
0 |
assert(!t->current_stream); |
341
|
0 |
0 |
assert(!t->current_stream); |
352
|
0 |
0 |
if (!out) |
356
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(t); |