Brad Morgan
58ba0a4eba
Cleanup
2013-05-05 08:34:56 -04:00
Brad Morgan
f7158cd79b
Push working over ssh
2013-05-04 11:28:20 -04:00
Brad Morgan
d04c384036
Adding ssh transport logic
2013-05-03 14:53:23 -04:00
Brad Morgan
8ae55d940f
Renaming
2013-05-03 10:53:59 -04:00
Brad Morgan
297758dce3
Added ssh transport file
2013-05-03 10:37:33 -04:00
Carlos Martín Nieto
67ba7d2031
Allow git_remote_ls after disconnecting from the remote
...
Keep the data around until free, as expected by our own fetch example
2013-04-15 23:22:32 +02:00
Philip Kelley
5c5eeba6fd
Add git_has_win32_version helper
2013-03-31 22:22:33 -04:00
Philip Kelley
0227fa2a35
Avoid pre-Win7 WinHTTP self-redirect quirk
2013-03-30 21:36:04 -04:00
Philip Kelley
35e0f3c629
Refine the redirect check condition
2013-03-25 17:59:30 -04:00
Philip Kelley
2c7f7a66e9
http: Support 302 Found (arrbee did most of the work)
2013-03-25 17:35:36 -04:00
Arkadiy Shapkin
10c06114cb
Several warnings detected by static code analyzer fixed
...
Implicit type conversion argument of function to size_t type
Suspicious sequence of types castings: size_t -> int -> size_t
Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)'
Unsigned type is never < 0
2013-03-18 03:30:26 +04:00
Russell Belfer
55e0f53d86
Fix various build warnings
...
This fixes various build warnings on Mac and Windows (64-bit).
2013-03-14 15:09:29 -07:00
Philip Kelley
f58983246d
Style: Reverse lhs and rhs of == comparisons
2013-03-12 15:31:14 -04:00
Philip Kelley
b8c325806f
Advertise and support side-band-64k when calling receive-pack
2013-03-12 15:19:32 -04:00
abepern
20858f6ea6
Implemented push on the local transport
2013-03-11 17:32:33 -04:00
Russell Belfer
56543a609a
Clear up warnings from cppcheck
...
The cppcheck static analyzer generates warnings for a bunch of
places in the libgit2 code base. All the ones fixed in this
commit are actually false positives, but I've reorganized the
code to hopefully make it easier for static analysis tools to
correctly understand the structure. I wouldn't do this if I
felt like it was making the code harder to read or worse for
humans, but in this case, these fixes don't seem too bad and will
hopefully make it easier for better analysis tools to get at any
real issues.
2013-02-15 16:02:45 -08:00
Ben Straub
a9e1339c06
Fix a leak when canceling a network operation
2013-02-14 08:12:55 -08:00
Russell Belfer
9c258af094
Merge pull request #1316 from ben/clone-cancel
...
Allow network operations to cancel
2013-02-12 10:13:56 -08:00
Philip Kelley
a150cc875d
Fix a bug introduced in df93a681 'Merge the push...'
2013-02-10 18:16:10 -05:00
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
ea57f66b57
Expect standard error code from internal calls
2013-02-06 11:02:29 -08:00
Ben Straub
def60ea473
Allow all non-zero returns to cancel transfers
2013-02-05 13:14:48 -08:00
Ben Straub
fe95ac1b67
Allow progress callback to cancel fetch
...
This works by having the indexer watch the return
code of the callback, so will only take effect
on object boundaries.
2013-02-05 10:59:58 -08: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