| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Instead of waiting until the `read_response` to handle the response
headers, read them when we write the request. The write function now
only deals with the response body. This refactor allows us to handle
redirects to our POSTs, when requested.
|
| |
|
|
|
|
| |
Test that we honor `http.followRedirects` when set to initial or false.
|
| |
|
|
|
|
|
|
|
| |
Give callers the ability to select how to handle redirects - either
supporting redirects during the initial connection (so that, for
example, `git.example.com/repo` can redirect to `github.com/example/repo`)
or all/no redirects. This is for compatibility with git.
|
|
|
|
| |
In redirect application logic, (optionally) allow off-site redirects.
|
|
|
|
| |
We (thankfully) don't have flaky tests anymore, don't retry them.
|
|
|
|
|
| |
The new version of our test git server adds redirect support. Upgrade
to it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The existing mechanism for providing options to remote fetch/push calls,
and subsequently to transports, is unsatisfactory. It requires an
options structure to avoid breaking the API and callback signatures.
1. Introduce `git_remote_connect_options` to satisfy those needs.
2. Add a new remote connection API, `git_remote_connect_ext` that will
take this new options structure. Existing `git_remote_connect` calls
will proxy to that. `git_remote_fetch` and `git_remote_push` will
proxy their fetch/push options to that as well.
3. Define the interaction between `git_remote_connect` and fetch/push.
Connect _may_ be called before fetch/push, but _need not_ be. The
semantics of which options would be used for these operations was
not specified if you specify options for both connect _and_ fetch.
Now these are defined that the fetch or push options will be used
_if_ they were specified. Otherwise, the connect options will be
used if they were specified. Otherwise, the library's defaults will
be used.
4. Update the transports to understand `git_remote_connect_options`.
This is a breaking change to the systems API.
|
|
|
|
|
| |
Several places in the remote code identify an error and then swallow it;
return the error.
|
|
|
|
|
| |
Push starts by connecting, don't try to connect again, just rely on the
existing connection existing.
|
| |
|
|\ |
|
| | |
|
| |\ |
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
config: handle empty conditional in includeIf
|
| | | |
|
| |/
| |
| |
| |
| |
| | |
When a config file contains `[includeIf]` (with no condition), we should
treat that as a falsey value. This means that we should properly parse
a config value of `includeIf.path`.
|
|\ \
| | |
| | | |
Add `rename_threshold` to `git_status_options`.
|
| |/ |
|
|\ \
| |/
|/| |
ntmlclient: fix linking with libressl
|
|/ |
|
|\
| |
| | |
Remove PSGit from Language Bindings section of README
|
|/
|
| |
PSGit is not using libgit2 library. It is stub of a library and is not developed further.
|
|\
| |
| | |
ci: build with ssh on nightly
|
|/ |
|
|\
| |
| | |
remote: refactor insteadof application
|
|/
|
|
|
|
|
| |
Using the insteadof helper would leak memory when we didn't really want
the pushInsteadOf configuration. Refactor the choice into the function
that allocates memory (or now, not) and use a more idiomatic `int`
return code.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
See commit f0e693b18afbe1de37d7da5b5a8967b6c87d8e53
|
| | |
|
| |
| |
| |
| |
| |
| | |
Since we are able to give our own git checkout options,
the default git checkout strategy will be the same as
initialized in a new git_checkout_options struct.
|
|/
|
|
|
|
| |
Extend the `git_worktree_add_options` to include `git_checkout_options`.
github issue #5949
|
|\
| |
| | |
blob: identify binary content
|
| |
| |
| |
| |
| | |
Introduce `git_blob_data_is_binary` to examine a blob's data, instead of
the blob itself. A replacement for `git_buf_is_binary`.
|
|\ \
| | |
| | | |
Config parsing
|
| | |
| | |
| | |
| | |
| | |
| | | |
(fixes issue #6088)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
| | |
| | |
| | |
| | |
| | |
| | | |
(fixes issue #6089)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
|
|\ \ \
| | | |
| | | | |
git_commit_summary: ignore lines with spaces
|
| |/ /
| | |
| | |
| | | |
Fixes libgit2/libgit2#6065
|
|\ \ \
| | | |
| | | | |
remotes: fix insteadOf/pushInsteadOf handling
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
we want to test:
- an anonymous repo (a url)
- a named repo with a url
- a named repo with a url and pushurl
and for each of these matching configuration:
- only insteadOf
- only pushInsteadOf
- both insteadOf and pushInsteadOf
this change adds test cases for all of these combinations.
|