FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow proxy options when connecting with a detached remote. by lrm29 · Pull Request #6058 · libgit2/libgit2 · GitHub

Allow proxy options when connecting with a detached remote. - #6058

Merged
ethomson merged 4 commits into
libgit2:mainfrom
mathworks:proxy_config_with_detached_remote
Sep 20, 2021
Merged

ethomson merged 4 commits into
libgit2:mainfrom
mathworks:proxy_config_with_detached_remote

Conversation

lrm29 commented Sep 16, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #6059.

lrm29 marked this pull request as ready for review September 16, 2021 11:17

ethomson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think that we can avoid keeping this cleanup_config variable by getting a refcounted pointer for the repository's config, instead of a weak pointer. Then we'll just free it always. There's no real overhead to getting a regular config and git_config_freeing it, the only real advantage to weak pointers is that you don't need to worry about freeing them.

Comment thread src/remote.c Outdated
Comment thread src/remote.c Outdated
Comment thread src/remote.c Outdated
Comment thread src/remote.c Outdated

Copy link
Copy Markdown
Member

Thanks for this! I might recommend a minor cleanup.

lrm29 and others added 2 commits September 18, 2021 21:00
Co-authored-by: Edward Thomson <ethomson@github.com>
Initialise cfg variable.
lrm29 requested a review from ethomson September 18, 2021 20:23

Copy link
Copy Markdown
Member

Looks good to me! Thanks for the fix!

ethomson merged commit 0644c2e into libgit2:main Sep 20, 2021
lrm29 deleted the proxy_config_with_detached_remote branch September 28, 2021 19:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Allow proxy options when connecting with a detached remote.

2 participants


Back | FazBrowse Home | New Git URL