summaryrefslogtreecommitdiff
path: root/src/fetch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-01 00:05:25 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-05-19 17:50:52 +0200
commit66024c7cbcbae3a75d0b0426993d8ee5fa5f9dfb (patch)
tree942b12533fe7f158679c0a2a3692494be849a855 /src/fetch.c
parentad5df35a47d56c3d716d7a56eac4aeb611987c11 (diff)
downloadlibgit2-66024c7cbcbae3a75d0b0426993d8ee5fa5f9dfb.tar.gz
http: add https support when GnuTLS is available
If it's not available, an error saying so will be returned when trying to use a https:// URL. This also unifies a lot of the network code to use git_transport in many places instead of an socket descriptor.
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c
index c92cf4ef5..96b263faa 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -110,7 +110,7 @@ int git_fetch_download_pack(git_remote *remote, git_off_t *bytes, git_indexer_st
int git_fetch__download_pack(
const char *buffered,
size_t buffered_size,
- GIT_SOCKET fd,
+ git_transport *t,
git_repository *repo,
git_off_t *bytes,
git_indexer_stats *stats)
@@ -120,7 +120,7 @@ int git_fetch__download_pack(
gitno_buffer buf;
git_indexer_stream *idx;
- gitno_buffer_setup(&buf, buff, sizeof(buff), fd);
+ gitno_buffer_setup(t, &buf, buff, sizeof(buff));
if (memcmp(buffered, "PACK", strlen("PACK"))) {
giterr_set(GITERR_NET, "The pack doesn't start with the signature");