From 5a12b84c5916c540d7efb5055deea111a4ebf8be Mon Sep 17 00:00:00 2001
From: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Date: Wed, 17 Jan 2024 19:50:39 -0500
Subject: [PATCH] [Dev][Deps] Update LibGit2Sharp to 0.29.0 to resolve cloning
issues on Arm64 (#321)
* [Deps] Update LibGit2Sharp to 0.29.0
* [RepositoryProvider] CredentialsProvider is now located under the FetchOptions subclass
* Upgrade LibGit2Sharp version in Test project
---
src/GitHubExtension/GitHubExtension.csproj | 2 +-
src/GitHubExtension/Providers/RepositoryProvider.cs | 2 +-
test/GitHubExtension/GitHubExtension.Test.csproj | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/GitHubExtension/GitHubExtension.csproj b/src/GitHubExtension/GitHubExtension.csproj
index 2a0fff88..7788cf36 100644
--- a/src/GitHubExtension/GitHubExtension.csproj
+++ b/src/GitHubExtension/GitHubExtension.csproj
@@ -72,7 +72,7 @@
-
+
diff --git a/src/GitHubExtension/Providers/RepositoryProvider.cs b/src/GitHubExtension/Providers/RepositoryProvider.cs
index fd066708..463272d0 100644
--- a/src/GitHubExtension/Providers/RepositoryProvider.cs
+++ b/src/GitHubExtension/Providers/RepositoryProvider.cs
@@ -207,7 +207,7 @@ public IAsyncOperation 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,
diff --git a/test/GitHubExtension/GitHubExtension.Test.csproj b/test/GitHubExtension/GitHubExtension.Test.csproj
index 040cc521..aa425c2d 100644
--- a/test/GitHubExtension/GitHubExtension.Test.csproj
+++ b/test/GitHubExtension/GitHubExtension.Test.csproj
@@ -24,7 +24,7 @@
-
+