8000 Backports for v1.7 by ethomson · Pull Request #6614 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Backports for v1.7 #6614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 8, 2023
Merged

Backports for v1.7 #6614

merged 14 commits into from
Aug 8, 2023

Conversation

ethomson
Copy link
Member
@ethomson ethomson commented Aug 2, 2023

Backporting #6597, #6599, #6600, #6608, #6610

mascguy and others added 14 commits August 2, 2023 21:18
- Constant only available in 10.13+, causing build failures for older macOS releases
Fixes: #6606
Add a missing include for `git2/oidarray.h` so build doesn't fail on
using `git_oidarray` when using custom transports.

Fixes #6607
We are allowed to call `git_repository__cleanup` multiple times, and this
happens e.g. in rugged if we want to free up resources before GC gets around to
them.

This means that we cannot leave dangling pointers in it, which we were doing
with the grafts. Fix this by setting the pointers to NULL after freeing the resources.
Refactor url parsing to simplify the state-passing (introducing a
struct) and add a path parser for future reusability.
Introduce a url parser that defaults to treating poorly specified URLs
as http URLs. For example: `localhost:8080` is treated as
`http://localhost:8080/` by the http-biased url parsing, instead of a
URL with a scheme `localhost` and a path of `8080`..
The common format for specifying proxy URLs is just 'host:port'. Handle
the common case.
Test proxies specified by both host:port format in configuration
options, environment variables, and `http.proxy` configuration.
@ethomson ethomson merged commit edf559f into maint/v1.7 Aug 8, 2023
@ethomson ethomson deleted the ethomson/v1.7 branch August 8, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0