Philip Kelley
47fc264203
Fix gen_pktline format specifier for Win32
2013-01-22 09:25:15 -05:00
Philip Kelley
77844988b8
Fix really bad error handling in git_smart__negotiate_fetch
2013-01-18 14:51:46 -05:00
nulltoken
090d5e1fda
Fix MSVC compilation warnings
2013-01-11 19:30:59 +01:00
Ben Straub
520dcc1c00
Move credential helpers to their own (optional) header
2013-01-09 13:31:17 -08:00
Ben Straub
ffb02b1630
Expose stock user/pass credential utility
2013-01-09 13:31:17 -08:00
Edward Thomson
359fc2d241
update copyrights
2013-01-08 17:31:27 -06:00
Maxwell Swadling
79ff264e2f
Fixed size_t format string warning
2013-01-05 11:34:19 +11:00
Congyi Wu
4128f5aa31
Fix bug in gen_pktline() for deletes of missing remote refs
...
* gen_pktline() in smart_protocol.c was skipping refspecs that deleted
refs that were not advertised by the server. The new behavior is to
send a delete command with an old-id of zero, which matches the behavior
of the official git client.
* Update test_network_push__delete() in reaction to above fix.
* Obviate messy logic that handles missing push_spec rrefs by canonicalizing
push_spec. After calculate_work(), loid, roid, and rref, are filled in with
exactly what is sent to the server
2013-01-03 17:19:55 -05:00
Ben Straub
2a2d1ab086
Cloning empty repos: only allow missing target for HEAD
2012-12-15 14:30:20 -08:00
Ben Straub
b524fe1a3c
Local Only ignore ENOTFOUNDs when adding corrupted refs
2012-12-14 13:58:44 -08:00
Ben Straub
850b1edfe8
Allow clone to handle empty repos
2012-12-14 13:58:44 -08:00
Ben Straub
4cbe9a1be1
Add git_cred_acquire_cb payload to winhttp transport
2012-12-10 11:48:20 -08:00
Ben Straub
59bccf33c4
Add a payload param to git_cred_acquire_cb
...
Fixes #1128 .
2012-12-10 11:11:01 -08:00
Ben Straub
1071176900
Deploy versioned git_transport structure
2012-11-30 13:12:15 -08:00
Philip Kelley
4a6621fdf7
Leverage the min macro from util.h
2012-11-29 08:35:21 -05:00
Philip Kelley
6762fe087b
Remove casts of return values of type void *
2012-11-29 08:29:26 -05:00
Philip Kelley
613d5eb939
Push! By schu, phkelley, and congyiwu, et al
2012-11-28 11:42:37 -05:00
Ben Straub
df705148ec
API updates for remote.h
...
Includes typedef for git_direction, and renames for
GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
2012-11-27 13:19:49 -08:00
Russell Belfer
a8122b5d4a
Fix warnings on Win64 build
2012-11-27 13:18:29 -08:00
Vicent Marti
cfbe4be3fb
More external API cleanup
...
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
2012-11-27 13:18:27 -08:00
Ben Straub
2508cc66eb
Rename ref and reflog apis for consistency
2012-11-27 13:17:45 -08:00
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