Skip to content

Commit e237c8b

Browse files
authored
Merge pull request libgit2#1728 from libgit2/ethomson/update_libgit2
Update libgit2 to ef5a385
2 parents 0e8a3ca + 64ab971 commit e237c8b

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,6 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
297297
Assert.True(checksHappy);
298298
}
299299

300-
[Fact]
301-
public void CloningAnUrlWithoutPathThrows()
302-
{
303-
var scd = BuildSelfCleaningDirectory();
304-
305-
Assert.Throws<InvalidSpecificationException>(() => Repository.Clone("http://github.com", scd.DirectoryPath));
306-
}
307-
308300
[Theory]
309301
[InlineData("git://github.com/libgit2/TestGitRepository")]
310302
public void CloningWithoutWorkdirPathThrows(string url)

LibGit2Sharp/Core/GitRebaseOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ internal class GitRebaseOptions
1717
public GitMergeOpts merge_options = new GitMergeOpts { Version = 1 };
1818

1919
public GitCheckoutOpts checkout_options = new GitCheckoutOpts { version = 1 };
20+
21+
public NativeMethods.commit_signing_callback signing_callback;
2022
}
2123
}

LibGit2Sharp/Core/GitRemoteCallbacks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ internal struct GitRemoteCallbacks
3434
internal IntPtr transport;
3535

3636
internal IntPtr payload;
37+
38+
internal NativeMethods.url_resolve_callback resolve_url;
3739
}
3840
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ internal static extern unsafe int git_branch_remote_name(
321321
git_repository* repo,
322322
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(StrictUtf8Marshaler))] string canonical_branch_name);
323323

324+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
325+
internal delegate int commit_signing_callback(
326+
IntPtr signature,
327+
IntPtr signature_field,
328+
IntPtr commit_content,
329+
IntPtr payload);
330+
324331
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
325332
internal static extern unsafe int git_rebase_init(
326333
out git_rebase* rebase,
@@ -2037,6 +2044,13 @@ internal static extern unsafe int git_cherrypick_commit(out git_index* index,
20372044
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
20382045
internal static extern void git_transaction_free(IntPtr txn);
20392046

2047+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
2048+
internal delegate int url_resolve_callback(
2049+
IntPtr url_resolved,
2050+
IntPtr url,
2051+
int direction,
2052+
IntPtr payload);
2053+
20402054
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
20412055
internal static extern unsafe void git_worktree_free(git_worktree* worktree);
20422056

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</ItemGroup>
2828

2929
<ItemGroup>
30-
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="[2.0.289]" PrivateAssets="none" />
30+
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="[2.0.298]" PrivateAssets="none" />
3131
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="all" />
3232
<PackageReference Include="Nerdbank.GitVersioning" Version="2.3.138" PrivateAssets="all" />
3333
</ItemGroup>

0 commit comments

Comments
 (0)