Upgrade libgit2sharp

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.

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.com<mailto: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 GitHub<https://github.com/Particular/GitVersion/pull/188/files#r13507607>.