Skip to content

Commit

Permalink
Merge pull request #2075 from herzogdemeuron/master
Browse files Browse the repository at this point in the history
LibGit2Sharp CredentialsProvider fix
  • Loading branch information
jmcouffin authored Feb 6, 2024
2 parents 3e16882 + 373249e commit 8c34c2c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
Binary file modified bin/LibGit2Sharp.dll
Binary file not shown.
Binary file added bin/git2-a2bde63.dll
Binary file not shown.
Binary file modified bin/pyRevitLabs.Common.dll
Binary file not shown.
3 changes: 1 addition & 2 deletions dev/pyRevitLabs/pyRevitLabs.Common/GitInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public static Repository Clone(string repoPath, string branchName, string destPa

// add username and password to clone options, if provided by user
if (creds is GitInstallerCredentials && creds.IsValid())
cloneOps.CredentialsProvider = (_url, _usernameFromUrl, _credTypes) => creds.GetCredentials();

cloneOps.FetchOptions.CredentialsProvider = (_url, _usernameFromUrl, _credTypes) => creds.GetCredentials();
try
{
// attempt at cloning the repo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="DotNetVersionFinder" Version="1.1.3" />
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
<PackageReference Include="LibGit2Sharp" Version="0.29.0" />
<PackageReference Include="MadMilkman.Ini" Version="1.0.6" />
<PackageReference Include="OpenMcdf" Version="2.2.1.6" />
<PackageReference Include="YamlDotNet" Version="8.1.2" />
Expand Down

0 comments on commit 8c34c2c

Please sign in to comment.