diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index b54c766ae4..85a30b733d 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -6,7 +6,7 @@
-
+
diff --git a/src/GitVersion.LibGit2Sharp/Git/GitRepository.extended.cs b/src/GitVersion.LibGit2Sharp/Git/GitRepository.extended.cs
index d7c0ceea10..b484a88516 100644
--- a/src/GitVersion.LibGit2Sharp/Git/GitRepository.extended.cs
+++ b/src/GitVersion.LibGit2Sharp/Git/GitRepository.extended.cs
@@ -116,7 +116,7 @@ private DirectReference GetPullRequestReference(AuthenticationInfo auth, LibGit2
private static FetchOptions GetFetchOptions(AuthenticationInfo auth) =>
new() { CredentialsProvider = GetCredentialsProvider(auth) };
private static CloneOptions GetCloneOptions(AuthenticationInfo auth) =>
- new() { Checkout = false, CredentialsProvider = GetCredentialsProvider(auth) };
+ new() { Checkout = false, FetchOptions = { CredentialsProvider = GetCredentialsProvider(auth) } };
private static CredentialsHandler? GetCredentialsProvider(AuthenticationInfo auth)
{
if (!auth.Username.IsNullOrWhiteSpace())