summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-12 22:44:35 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:10 +0200
commit427ca3d3c5b415c3970759b9334425707497fdf4 (patch)
tree67177cf55155a092d433ea0a148548bf22470d46 /src/netops.c
parent946dab73ba68b0d658cfb1544c1d35d1222b2087 (diff)
downloadlibgit2-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.c2
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;