Skip to content
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

Add CustomHeaders to PushOptions #2052

Merged
merged 1 commit into from Nov 3, 2023
Merged

Add CustomHeaders to PushOptions #2052

merged 1 commit into from Nov 3, 2023

Conversation

James-LG
Copy link
Contributor

@James-LG James-LG commented Jul 25, 2023

Wires up CustomHeaders in PushOptions in the same vein as FetchOptions.

Libgit2 already supports CustomerHeaders on PushOptions, so might as well hook it up. Plus it's required for some git servers that require strange PAT token formats like Azure DevOps #2041.

This PR is similar to #2011 except it properly disposes the managed string array and it has some tests.

@evolvedlight
Copy link

Any chance this could be merged? I'm currently maintaining a custom fork with this but this would allow me to delete it.

@James-LG
Copy link
Contributor Author

I would love to merge it, but it doesn't seem like the maintainers are very active unfortunately.

@jhested
Copy link

jhested commented Nov 1, 2023

I also need this :). How can we get it in?

@JBrejnholt
Copy link

@bording are you going to merge this change soon?

@kristianbjensen
Copy link

I need this aswell

@bording
Copy link
Member

bording commented Nov 3, 2023

@James-LG Go ahead and take out the devcontainer stuff, and then I'll give this a review and get it merged and released this weekend.

Wires up CustomHeaders in PushOptions in the same vain as FetchOptions.
@James-LG
Copy link
Contributor Author

James-LG commented Nov 3, 2023

Thanks! Devcontainers removed.

@bording bording merged commit ae59ffa into libgit2:master Nov 3, 2023
@bording bording changed the title feat: Add CustomHeaders to PushOptions Add CustomHeaders to PushOptions Nov 4, 2023
@bording
Copy link
Member

bording commented Nov 4, 2023

This has been released in LibGit2Sharp 0.28.0.

@jhested
Copy link

jhested commented Nov 6, 2023

That is awesome @bording. Thanks for taking the time to merge this

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.

None yet

6 participants