diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-12 22:44:35 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:10 +0200 |
| commit | 427ca3d3c5b415c3970759b9334425707497fdf4 (patch) | |
| tree | 67177cf55155a092d433ea0a148548bf22470d46 /src/netops.c | |
| parent | 946dab73ba68b0d658cfb1544c1d35d1222b2087 (diff) | |
| download | libgit2-427ca3d3c5b415c3970759b9334425707497fdf4.tar.gz | |
Actually implement object negotiation
Only signal that we need a pack if we do need it and don't send a want
just because it's the first. If we don't need to download the pack,
then we can skip all of the negotiation and just return success.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.c')
| -rw-r--r-- | src/netops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netops.c b/src/netops.c index 55cb7e45e..8126bcee3 100644 --- a/src/netops.c +++ b/src/netops.c @@ -55,7 +55,7 @@ int gitno_recv(gitno_buffer *buf) ret = recv(buf->fd, buf->data + buf->offset, buf->len - buf->offset, 0); if (ret < 0) - return git__throw(GIT_EOSERR, "Failed to receive data"); + return git__throw(GIT_EOSERR, "Failed to receive data: %s", strerror(errno)); if (ret == 0) /* Orderly shutdown, so exit */ return GIT_SUCCESS; |
