Skip to content

Commit

Permalink
Update LibGit2Sharp to v0.30.0.
Browse files Browse the repository at this point in the history
See libgit2/libgit2sharp#2065 for details of the breaking changes.
  • Loading branch information
bgrainger committed Jul 11, 2024
1 parent 3112730 commit 643a26b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<PackageVersion Include="Bullseye" Version="5.0.0" />
<PackageVersion Include="Glob" Version="1.1.9" />
<PackageVersion Include="LibGit2Sharp" Version="0.27.2" />
<PackageVersion Include="LibGit2Sharp" Version="0.30.0" />
<PackageVersion Include="McMaster.Extensions.CommandLineUtils" Version="4.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageVersion Include="NuGet.CommandLine" Version="6.10.1" />
Expand Down
4 changes: 2 additions & 2 deletions src/Faithlife.Build/DotNetBuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ void DoPublish(bool canPublishDocs)
sourceUrl = localRepositorySource ?? gitRepositoryUrl;
Console.WriteLine($"Cloning documentation repository from {sourceUrl} to {docsCloneDirectory}");
Repository.Clone(sourceUrl: sourceUrl, workdirPath: docsCloneDirectory,
options: new CloneOptions { BranchName = docsGitBranchName, CredentialsProvider = ProvideDocsCredentials });
options: new CloneOptions { BranchName = docsGitBranchName, FetchOptions = { CredentialsProvider = ProvideDocsCredentials } });

if (localRepositorySource is not null)
{
Expand Down Expand Up @@ -799,7 +799,7 @@ void PushTagsUsingLibGit2(DotNetPackageSettings? packageSettings, IEnumerable<st
try
{
Repository.Clone(sourceUrl: gitRepositoryUrl, workdirPath: tagsCloneDirectory,
options: new CloneOptions { CredentialsProvider = ProvidePackageTagCredentials });
options: new CloneOptions { FetchOptions = { CredentialsProvider = ProvidePackageTagCredentials } });
}
catch (LibGit2SharpException exception)
{
Expand Down

0 comments on commit 643a26b

Please sign in to comment.