Skip to content

Commit

Permalink
[Dev][Deps] Update LibGit2Sharp to 0.29.0 to resolve cloning issues o…
Browse files Browse the repository at this point in the history
…n Arm64 (#321)

* [Deps] Update LibGit2Sharp to 0.29.0

* [RepositoryProvider] CredentialsProvider is now located under the FetchOptions subclass

* Upgrade LibGit2Sharp version in Test project
  • Loading branch information
snickler authored Jan 18, 2024
1 parent 8a46962 commit f4bcb67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GitHubExtension/GitHubExtension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<ItemGroup>
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="Dapper.Contrib" Version="2.0.78" />
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
<PackageReference Include="LibGit2Sharp" Version="0.29.0" />
<PackageReference Include="MessageFormat" Version="6.0.2" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="7.0.4" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
Expand Down
2 changes: 1 addition & 1 deletion src/GitHubExtension/Providers/RepositoryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public IAsyncOperation<ProviderOperationResult> CloneRepositoryAsync(IRepository

try
{
cloneOptions.CredentialsProvider = (url, user, cred) => new LibGit2Sharp.UsernamePasswordCredentials
cloneOptions.FetchOptions.CredentialsProvider = (url, user, cred) => new LibGit2Sharp.UsernamePasswordCredentials
{
// Password is a PAT unique to GitHub.
Username = loggedInDeveloperId.GetCredential().Password,
Expand Down
2 changes: 1 addition & 1 deletion test/GitHubExtension/GitHubExtension.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231008000" />
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.0.2" />
<PackageReference Include="LibGit2Sharp" Version="0.26.2" />
<PackageReference Include="LibGit2Sharp" Version="0.29.0" />
<PackageReference Include="Octokit" Version="5.0.4" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit f4bcb67

Please sign in to comment.