-
Notifications
You must be signed in to change notification settings - Fork 658
Upgrade libgit2sharp #188
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
Upgrade libgit2sharp #188
Conversation
…te repo pull request builds
@graemefoster Wow! Thanks a lot for this. Looks pretty fine, but I'll take a deeper look later today. Just a nitpick: Could you please tweak your PR so that it makes TeamCity happier? |
No worries - it'll have to be tomorrow though. Pretty late here now and nice shut the computer off for the night. Cheers Graeme Sent from my iPhone On 6 Jun 2014, at 10:53 pm, "nulltoken" <notifications@github.commailto:notifications@github.com> wrote: @graemefosterhttps://github.com/graemefoster Wow! Thanks a lot for this. Looks pretty fine, but I'll take a deeper look later today. Just a nitpick: Could you please tweak your PR so that it makes TeamCity happier? Reply to this email directly or view it on GitHubhttps://github.com//pull/188#issuecomment-45345459. |
{ | ||
var remote = repo.Network.Remotes.Single(); | ||
var remoteTips = repo.Network.ListReferences(remote); | ||
var credentials = string.IsNullOrEmpty(arguments.Username) ? (Credentials) new DefaultCredentials() : new UsernamePasswordCredentials() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure you're really willing to use DefaultCredentials
. Its intended usage is to provide the "default" credentials (currently logged-in user information) via NTLM or SPNEGO authentication.
If you're rather after not providing any kind of credentials, just pass in null
. That should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did wonder about that one - cool will change it to either uname / pwd, or null.
Sent from my iPhone
On 7 Jun 2014, at 3:58 am, "nulltoken" <notifications@github.commailto:notifications@github.com> wrote:
In GitVersionCore/BuildServers/GitHelper.cs:
{ var remote = repo.Network.Remotes.Single();
var remoteTips = repo.Network.ListReferences(remote);
var credentials = string.IsNullOrEmpty(arguments.Username) ? (Credentials) new DefaultCredentials() : new UsernamePasswordCredentials()
I'm not sure you're really willing to use DefaultCredentials. It's intended usage is to provide the "default" credentials (currently logged-in user information) via NTLM or SPNEGO authentication.
If you're rather after not providing any kind of credentials, just pass in null. That should work.
Reply to this email directly or view it on GitHubhttps://github.com//pull/188/files#r13507607.
…dentials when username and password are present
To fix compile issue
@nulltoken this is all passing on TeamCity now, happy for it to be merged? |
…edentialsForBuildingPullRequests Upgrade libgit2sharp
@graemefoster ✨ ✨ ✨ |
Nice :) my first merged PR into an open source project! Sent from my iPhone On 10 Jun 2014, at 3:55 am, "nulltoken" <notifications@github.commailto:notifications@github.com> wrote: Reply to this email directly or view it on GitHubhttps://github.com//pull/188#event-129496129. |
🍰 |
Nice! Once we get the Command line and ruby gem builds running we will release 1.1 with this in it. Cheers Grae! |
LibGit2Sharp cannot build pull-requests on private repos on V17 as it was unable to pass credentials in the CreateFakeBranchPointingAtThePullRequestTip method.
This is fixed in v18 which provides an option to pass credentials to Network.ListReferences
This PR upgrades LibGit2Sharp to enable this method to be used.