Skip to content

Commit 0ed9fcf

Browse files
ethomsonAlexander Ovchinnikov
authored and
Alexander Ovchinnikov
committed
Cherry-pick Merge pull request #1728 from libgit2/ethomson/update_libgit2
1 parent 1d5b6a2 commit 0ed9fcf

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
@@ -206,6 +206,13 @@ internal static extern unsafe int git_branch_remote_name(
206206
git_repository* repo,
207207
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(StrictUtf8Marshaler))] string canonical_branch_name);
208208

209+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
210+
internal delegate int commit_signing_callback(
211+
IntPtr signature,
212+
IntPtr signature_field,
213+
IntPtr commit_content,
214+
IntPtr payload);
215+
209216
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
210217
internal static extern unsafe int git_rebase_init(
211218
out git_rebase* rebase,
@@ -1915,6 +1922,13 @@ internal static extern unsafe int git_cherrypick_commit(out git_index* index,
19151922
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
19161923
internal static extern void git_transaction_free(IntPtr txn);
19171924

1925+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
1926+
internal delegate int url_resolve_callback(
1927+
IntPtr url_resolved,
1928+
IntPtr url,
1929+
int direction,
1930+
IntPtr payload);
1931+
19181932
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
19191933
internal static extern unsafe void git_worktree_free(git_worktree* worktree);
19201934

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<ItemGroup>
3636
<PackageReference Include="Mendix.LibGit2Sharp.NativeBinaries" Version="[1.110.1]" PrivateAssets="none" />
3737
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
38-
<PackageReference Include="Nerdbank.GitVersioning" Version="2.2.13" PrivateAssets="all" />
38+
<PackageReference Include="Nerdbank.GitVersioning" Version="2.3.138" PrivateAssets="all" />
3939
</ItemGroup>
4040

4141
<Import Project="..\Targets\CodeGenerator.targets" />

0 commit comments

Comments
 (0)