Etienne Samson
eec4dcc34b
Whitespace.
2013-09-16 23:07:22 +02:00
Etienne Samson
b622aabec0
Add a wrapper to provide the libssh2 error message
2013-09-16 23:07:19 +02:00
Isaac Kearse
b345026baa
Test for repo before removing leading colon
2013-09-10 05:16:52 +12:00
Isaac Kearse
fbabe855ad
Trim leading colon from ssh repository path
2013-09-08 14:11:08 +12:00
Ben Straub
f42d546c63
Provide better errors for push on non-bare local remotes
2013-09-04 13:07:42 -07:00
Edward Thomson
1ff3a09415
Improve win32 version check, no ipv6 tests on XP
2013-08-27 19:44:35 -05:00
Vicent Martí
520287f63a
Merge pull request #1785 from libgit2/cmn/odb-hash-frontend
...
odb: move hashing to the frontend for streaming
2013-08-19 02:17:00 -07:00
Carlos Martín Nieto
376e6c9f96
odb: wrap the stream reading and writing functions
...
This is in preparation for moving the hashing to the frontend, which
requires us to handle the incoming data before passing it to the
backend's stream.
2013-08-15 14:29:27 +02:00
Russell Belfer
c87bf86cd7
Commit 7affc2f7 removed var initialization
...
That commit accidentally removed the initialization of the "start"
variable giving undefined results for the host extraction from the
url input.
2013-08-14 10:58:02 -07:00
Vicent Martí
40948998ba
Merge pull request #1767 from libgit2/win32-bigger-utf8-buffer
...
Bigger buffer for utf-8 parsing in win32
2013-08-13 11:36:24 -07:00
Russell Belfer
d4cff0cb1c
Rename git__win32_path fns to git_win32_path
2013-08-13 09:40:32 -07:00
Vicent Marti
abf3732728
windows: Path conversion with better semantics
2013-08-13 09:15:39 +02:00
Carlos Martín Nieto
7affc2f7de
Include username in each credential type
...
Key-based authentication also needs an username, so include it in each
one.
Also stop assuming a default username of "git" in the ssh transport
which has no business making such a decision.
2013-08-12 12:07:21 +02:00
Ben Straub
aaefbdeea2
Discriminate path-specific and general UTF-X conversions
2013-08-08 08:48:57 -07:00
Ben Straub
2c0128ee79
Rename git_win_str_utf* to git_win32_path_utf*
2013-08-07 19:29:33 -07:00
Ben Straub
9c38f7a652
Add typedefs for win32 utf-8 and utf-16 buffers
...
...and normalize the signatures of the two conversion functions.
2013-08-07 13:22:41 -07:00
Ben Straub
d85636190f
Split UTF-16 and UTF-8 buffer sizes for win32
...
Also fixed up call-sites to use the correct buffer sizes, especially
when converting to utf-8.
2013-08-05 11:41:39 -07:00
Russell Belfer
33c8c6f0b8
trivial whitespace fixup
2013-07-10 10:48:32 -07:00
Russell Belfer
c2de6b1adf
Bring SSH error reporting up to base standards
...
The SSH error checking and reporting could still be further
improved by using the libssh2 native methods to get error info,
but at least this ensures that all error codes are checked and
translated into libgit2 error messages.
2013-07-10 10:21:24 -07:00
Russell Belfer
68bc49a158
Merge branch 'ssh-cred-fix' of tiennou/libgit2
...
Conflicts:
src/transports/ssh.c
2013-07-10 09:20:46 -07:00
Etienne Samson
08bf80fa2b
Tab indent.
2013-07-10 09:42:28 +02:00
Etienne Samson
367c1903e9
Add some missing error messages.
2013-07-10 09:33:14 +02:00
Russell Belfer
a4456929a8
Make credential clearing consistent
...
This makes all of the credential objects use the same pattern to
clear the contents and call git__memzero when done. Much of this
information is probably not sensitive, but it also seems better
to just clear consistently.
2013-07-09 16:16:24 -07:00
Russell Belfer
03d9b930ee
Indent with tabs
2013-07-09 14:45:58 -07:00
Russell Belfer
5813bc2194
Lots of SSH credential stuff can be left on
...
Much of the SSH credential creation API can be left enabled even
on platforms with no SSH support. We really just have to give an
error when you attempt to open the SSH connection.
2013-07-09 12:01:16 -07:00
Russell Belfer
a3c062dbf8
Make SSH APIs present even without SSH support
...
The SSH APIs will just return an error code and state that the
library was built without SSH support if they are called in
that case.
2013-07-09 09:58:33 -07:00
Etienne Samson
f6bd086335
Fix a probable leak.
2013-07-03 22:10:05 +02:00
Etienne Samson
219f318c05
Fix a crash if git_remote_set_cred_acquire_cb wasn't called before connecting.
...
Fixes #1700 .
2013-07-03 22:10:05 +02:00
Arthur Schreiber
9728cfde5f
Make sure we don't leak memory again.
2013-06-25 11:17:55 +03:00
Arthur Schreiber
edbaa63a7c
Unbreak git_remote_ls on a local transport after disconnecting.
2013-06-25 09:04:04 +02:00
Arthur Schreiber
8c510b8313
Fix a leak in the local transport code.
2013-06-24 21:02:42 +02:00
yorah
0525fb7ef3
cred: deploy git__memzero to clear memory holding a password
2013-06-17 15:42:34 +02:00
Russell Belfer
37f66e8263
Fix Windows warnings
...
This fixes problems with missing function prototypes and 64-bit
data issues on Windows.
2013-06-12 15:21:21 -07:00
Vicent Martí
e3107e0ee1
Merge pull request #1558 from bmorganpa/ssh_transport
...
SSH Transport
2013-05-16 11:35:02 -07:00
Linquize
7026ad893b
calloc() to initialize memory
2013-05-16 21:11:38 +08:00
nulltoken
1fed6b07f0
Fix trailing whitespaces
2013-05-15 22:41:30 +02:00
Brad Morgan
84ac625ddd
Added GITERR_CHECK_ALLOC
2013-05-15 12:51:40 -04:00
Brad Morgan
ccaee222a1
Added GITERR_CHECK_ALLOC
2013-05-15 12:46:33 -04:00
Brad Morgan
e057e41122
Reworked git_cred_ssh_keyfile_passphrase_new method
2013-05-15 12:44:51 -04:00
Brad Morgan
b54ed3efe8
Added error check
2013-05-15 12:41:16 -04:00
Brad Morgan
22011b33da
Cleanup
2013-05-15 12:38:40 -04:00
Linquize
0cb16fe924
Unify whitespaces to tabs
2013-05-15 20:26:55 +08:00
Linquize
e583334c00
Fix broken build when MSVC SDL checks is enabled
2013-05-11 20:13:26 +08:00
Carlos Martín Nieto
2b562c3a1e
refs: remove the OID/SYMBOLIC filtering
...
Nobody should ever be using anything other than ALL at this level, so
remove the option altogether.
As part of this, git_reference_foreach_glob is now implemented in the
frontend using an iterator. Backends will later regain the ability of
doing the glob filtering in the backend.
2013-05-11 11:20:38 +02:00
Brad Morgan
ce6d50b994
Changed to use libssh2_channel_exec
2013-05-09 17:37:42 -04:00
Brad Morgan
05f581311b
Renaming
2013-05-09 17:36:27 -04:00
Brad Morgan
00e43380a0
Merge remote-tracking branch 'origin/development' into ssh_transport
2013-05-07 14:30:35 -04:00
Brad Morgan
574b86b722
Fixed compilation issues when libssh2 is missing
2013-05-07 13:56:34 -04:00
Brad Morgan
c36565c0ee
Added SSH public key authentication
2013-05-07 13:45:31 -04:00
Brad Morgan
7621519f73
Cleanup
2013-05-05 14:46:28 -04:00