Carlos Martín Nieto
7e9f5e6500
Slightly different valgrind fix
...
Allocate with calloc rather than conditionally memsetting a specific
part of the struct later on.
2012-11-13 20:06:15 -08:00
Carlos Martín Nieto
6132a54e0b
Fix a few valgrind errors
2012-11-13 16:17:37 -08:00
Vicent Marti
f6c18dda04
http: Unrustle
2012-11-13 14:17:41 -08:00
Vicent Martí
aa1c3b588e
Merge pull request #1016 from arrbee/fix-checkout-dir-removal
...
Update checkout with new strategies & behavior
2012-11-13 14:13:47 -08:00
Ben Straub
e45423dd2c
Merge pull request #1065 from nulltoken/fix/memory-leak
...
Fix memory leaks
2012-11-13 05:45:08 -08:00
Michael Schubert
d51e54f1f4
Remove unused variables
2012-11-13 14:28:44 +01:00
nulltoken
3dee36557e
local: fix memory leak
2012-11-13 07:04:30 +01:00
Vicent Marti
19c044a17d
Merge remote-tracking branch 'ben/local-transport' into development
2012-11-12 14:23:17 -08:00
Ben Straub
14157652ee
Remove unnecessary progress logic
...
The indexer handles this better than the fetch
logic does.
2012-11-12 07:57:03 -08:00
Ben Straub
0f5520f73a
Fix error check
2012-11-12 07:55:09 -08:00
Russell Belfer
757b406504
Fix warnings and valgrind issues
...
This fixes some various warnings that showed up in Travis and
a couple uses of uninitialized memory and one memory leak.
2012-11-09 14:01:44 -08:00
Philip Kelley
2f683f0097
Fix uninitialized memory in winhttp subtransport on 64-bit
2012-11-09 15:39:25 -05:00
Ben Straub
90207709a3
Avoid copying duplicate commits
2012-11-09 10:33:16 -08:00
Ben Straub
505da062b8
Implement local transport's fetch
2012-11-09 10:33:05 -08:00
Philip Kelley
9d64128325
Merge pull request #1048 from pwkelley/basic_auth
...
Basic authentication for http and winhttp
2012-11-08 08:06:23 -08:00
Philip Kelley
11fa847283
Don't store no_check_cert; fetch it on demand
2012-11-06 11:27:23 -05:00
Philip Kelley
2f7538ec00
Fix connection leak in http subtransport
2012-11-06 09:36:04 -05:00
Philip Kelley
091361f569
Basic authentication for http and winhttp
2012-11-06 08:52:03 -05:00
Edward Thomson
09cc0b92dc
create callback to handle packs from fetch, move the indexer to odb_pack
2012-11-05 16:00:29 -06:00
Philip Kelley
438906e160
Fix bytes_received in fetch tests - we weren't calling the callback
2012-11-02 14:34:06 -04:00
Philip Kelley
ff830366ea
Http: Set an error for invalid content-type
2012-11-01 12:07:42 -04:00
Philip Kelley
0ccfc63bd6
Improve consistency of WinHTTP request headers
2012-11-01 10:29:30 -04:00
Philip Kelley
41fb1ca0ec
Reorganize transport architecture (squashed 3)
2012-11-01 09:02:33 -04:00
Ben Straub
a0ce87c51c
Add network transfer callbacks on Windows
2012-10-26 13:43:13 -07:00
Ben Straub
7bcd9e23e8
gitno_buffer: callback on each packet
...
The fetch code takes advantage of this to implement a
progress callback every 100kb of transfer.
2012-10-19 19:36:23 -07:00
nulltoken
68206c54bf
test: fix some memory leaks
2012-10-15 20:41:43 +02:00
Carlos Martín Nieto
aeba5e175a
http: don't discard the HEAD ref
...
The fix for fetching from empty repositories (22935b06d protocol:
don't store flushes; 2012-10-07) forgot to take into account the
deletion of the flush pkt in the HTTP transport. As a result, the HEAD
ref advertisement where we detect the remote's capabilities was
deleted instead. Fix this.
2012-10-10 23:59:16 +02:00
nulltoken
9ac8b113b1
Fix MSVC amd64 compilation warnings
2012-09-20 14:10:05 +02:00
Carlos Martín Nieto
687ec68be4
http: use the new unicode functions
...
The winhttp branch was based on a version before these existed, so the
build broke on Windows.
2012-09-14 00:51:29 +02:00
Carlos Martín Nieto
3ce22c7485
http: use WinHTTP on Windows
...
Wondows has its own HTTP library. Use that one when possible instead of
our own.
As we don't depend on them anymore, remove the http-parser library from
the Windows build, as well as the search for OpenSSL.
2012-09-14 02:13:30 +02:00
Carlos Martín Nieto
cc1d85d1da
http: increase buffer side to deal with side-band-64k
...
This poor transport was forgotten in the recent sideband support.
2012-08-25 23:32:19 +02:00
Carlos Martín Nieto
e03e71da56
network: add sideband support
...
This lets us notify the user of what the remote end is doing while we
wait for it to start sending us the packfile.
2012-08-24 20:29:39 +02:00
Russell Belfer
e9ca852e4d
Fix warnings and merge issues on Win64
2012-08-23 09:20:17 -07:00
Carlos Martín Nieto
0048372a9a
transport: rename encrypt to use_ssl
...
SSL isn't the only way that a transport can be encrypted. The new name
will make it easier to merge the SSH support.
2012-07-30 20:28:16 +02:00
Carlos Martín Nieto
ad4b5beb50
transport: store the refs in a common area
...
Instad of each transport having its own function and logic to get to
its refs, store them directly in transport.
Leverage the new gitno_buffer to make the parsing and storing of the
refs use common code and get rid of the git_protocol struct.
2012-07-30 20:28:16 +02:00
Carlos Martín Nieto
b49c8f71ae
remote: use the same code to control git and http
...
This allows us to add capabilitites to both at the same time, keeps
them in sync and removes a lot of code.
gitno_buffer now uses a callback to fill its buffer, allowing us to
use the same interface for git and http (which uses callbacks).
2012-07-30 20:28:16 +02:00
Carlos Martín Nieto
114dc6e14c
network: implement multi_ack for the git transport
2012-07-30 20:28:16 +02:00
Carlos Martín Nieto
64d01de8a7
remote: start moving the protocol to a common area
...
For the transition, http is going to keep its own logic until the
git/common code catches up with the implied multi_ack that http
has. This also has the side-effect of making the code cleaner and more
correct regardingt he protocol.
2012-07-30 20:25:10 +02:00
Carlos Martín Nieto
371599576a
indexer: don't use '/objects/pack/' unconditionally
...
Not everyone who indexes a packfile wants to put it in the standard
git repository location.
2012-06-28 10:24:03 +02:00
Michael Schubert
fdc5c38e40
transports: fix buglet
2012-06-05 23:03:06 +02:00
Vicent Martí
966fbdcb8e
Merge pull request #697 from carlosmn/ssl
...
Add HTTPS support
2012-06-05 13:53:33 -07:00
Arthur Schreiber
e9551e86b9
Fix git_close/http_close/local_close to set the transport's connected attribute to 0.
2012-06-02 16:52:22 +02:00
Carlos Martín Nieto
250b95b24b
ssl: allow skipping the server certificate check
...
Sometimes it's useful not to perform the check. Allow it to be
configurable.
2012-05-26 21:17:08 +02:00
Carlos Martín Nieto
89460f3f57
ssl: teardown the connection on close
...
This should help us free some resources, though the libraries do keep
some buffers allocated regardless.
2012-05-19 17:50:52 +02:00
Carlos Martín Nieto
a6f24a5b3a
https: make it work with OpenSSL as well
...
Add specific functions that use OpenSSL instead of GnuTLS
2012-05-19 17:50:52 +02:00
Carlos Martín Nieto
66024c7cbc
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.
2012-05-19 17:50:52 +02:00
Vicent Martí
59d91979d8
Merge pull request #710 from libgit2/breaking-changes
...
Break everything before the release
2012-05-18 13:53:38 -07:00
Michael Schubert
a167002f9e
fetch: set dummy function for local fetch
...
Local fetch isn't implemented yet. Don't segfault on call, but set a
dummy for negotiate_fetch and terminate gracefully.
Reported-by: Brad Harder <bch@methodlogic.net>
2012-05-18 12:44:01 +02:00
Vicent Martí
904b67e69f
errors: Rename error codes
2012-05-18 01:48:50 +02:00
Vicent Martí
e172cf082e
errors: Rename the generic return codes
2012-05-18 01:26:26 +02:00