Michael Schubert
a9d081e504
Fix -Wmaybe-uninitialized warning
2013-02-10 19:36:39 +01:00
Philip Kelley
df93a6810a
Merge the push report into the refs to avoid a 3rd network call
2013-02-08 15:21:37 -05:00
Ben Straub
630146bd1b
Address feedback
2013-02-04 13:52:18 -08:00
Ben Straub
8c36a3cdba
Remove double-free segfaults
2013-01-31 15:24:59 -08:00
Ben Straub
016179d668
WinHttp: use cred in url if provided
2013-01-31 14:54:58 -08:00
Ben Straub
54ffc1f773
HTTP: use creds in url if available
2013-01-31 14:41:01 -08:00
Ben Straub
cf7038a65c
Enhance url parsing to include passwords
2013-01-31 14:04:21 -08:00
Ben Straub
7602cb7c0e
Add user-from-url param to auth callback
2013-01-31 10:44:57 -08:00
Ben Straub
2234b2b031
Stash username from url (but don't use it yet)
2013-01-30 19:03:58 -08:00
Frank Li
88183c1988
Fix fail clone local repository because can't found object
...
avoid use object which is already free
Signed-off-by: Frank Li <lznuaa@gmail.com>
2013-01-27 13:36:37 +08:00
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