| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make socket I/O non-blocking and add optional timeouts.
Users may now set `GIT_OPT_SET_SERVER_CONNECT_TIMEOUT` to set a shorter
connection timeout. (The connect timeout cannot be longer than the
operating system default.) Users may also now configure the socket read
and write timeouts with `GIT_OPT_SET_SERVER_TIMEOUT`.
By default, connects still timeout based on the operating system
defaults (typically 75 seconds) and socket read and writes block.
Add a test against our custom testing git server that ensures that we
can timeout reads against a slow server.
|
| |
|
|
|
| |
The `depth` field is suitable to specify unshallowing; provide an enum
to aide in specifying the `unshallow` value.
|
| |
|
|
|
|
| |
Users should provide us an array of object ids; we don't need a separate
type. And especially, we should not be mutating user-providing values.
Instead, use `git_oid *` in the shallow code.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Provide a stream interface for Schannel - the native crypto APIs - on
Windows. This allows Windows to use the same HTTP transport that all the
other platforms use, with its own native crypto.
Ultimately this allows us to deprecate WinHTTP and we need not add
support for our socket changes in two places (our HTTP stack and the
WinHTTP stack).
|
| |
|
|
| |
This reverts commit 43e84e246cc716ac51a276945b5b112b21d802d1.
|
| | |
|
| |\
| |
| | |
SHA256: more SHA256 support
|
| | | |
|
| |/
|
|
|
|
|
| |
Teach the clone tests how to clone from github.com, when given a keypair
with a passphrase and known_hosts data. This allows us to better
exercise our known_hosts checking and ensure that the lifecycle of the
certificate callback matches our expectations.
|
| |\
| |
| | |
push: revparse refspec source, so you can push things that are not refs
|
| | |
| |
| |
| | |
I want to push a commit by OID to a remote branch. Currently, push parses the refspecs such that the source must be the name of a ref (it uses git_reference_name_to_id to resolve it). This commit changes it so push uses git_revparse_single to resolve the source of the refspec. This allows for OIDs or other revs (e.g. `HEAD~2`) to be pushed.
|
| |\ \
| | |
| | | |
Don't fail the whole clone if you can't find a default branch
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Test that we can successfully clone a repository that is namespace
scoped on the remote and does not advertise a HEAD. To do this, we must
specify the branch to checkout.
|
| | |/
| |
| |
| |
| |
| |
| | |
Test that we can successfully clone a repository that is namespace
scoped to a bare repository locally. We need not specify a checkout
branch in this case (obviously, since we do not check anything out in a
bare clone).
|
| |/ |
|
| |\
| |
| | |
tests: skip flaky-ass googlesource tests
|
| | | |
|
| | |
| |
| |
| |
| | |
The experimental function signature is only available when
`GIT_EXPERIMENTAL_SHA256` is enabled.
|
| | |
| |
| |
| |
| | |
`git_oid`s now have a type, and we require the oid type when creating
the object id from creation functions.
|
| |/
|
|
|
| |
Callers should not assume the layout of the oid structure; provide them
a macro that defines the null / zero sha1 object id.
|
| |
|
|
|
| |
Support the ability to create a refspec that is a single object ID
without a destination.
|
| | |
|
|
|
Like we want to separate libgit2 and utility source code, we want to
separate libgit2 and utility tests. Start by moving all the tests into
libgit2.
|