8000 Rebase: null out operation.exec field · SinghVarun/libgit2sharp@b042a0e · GitHub
[go: up one dir, main page]

Skip to content

Commit b042a0e

Browse files
committed
Rebase: null out operation.exec field
1 parent e371486 commit b042a0e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

LibGit2Sharp/Core/Proxy.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,11 @@ public static GitRebaseOperation git_rebase_operation_byindex(
16281628
{
16291629
Debug.Assert(index >= 0);
16301630
IntPtr ptr = NativeMethods.git_rebase_operation_byindex(rebase, ((UIntPtr) index));
1631-
return ptr.MarshalAs<GitRebaseOperation>();
1631+
GitRebaseOperation operation = ptr.MarshalAs<GitRebaseOperation>();
1632+
1633+
// Workaround until 92e87dd74 from libgit2 is consumed by LibGit2#
1634+
operation.exec = IntPtr.Zero;
1635+
return operation;
16321636
}
16331637

16341638
/// <summary>
@@ -1653,6 +1657,9 @@ public static GitRebaseOperation git_rebase_next(RebaseSafeHandle rebase,
16531657

16541658
// If successsful, then marshal native struct to managed struct.
16551659
operation = ptr.MarshalAs<GitRebaseOperation>();
1660+
1661+
// Workaround until 92e87dd74 from libgit2 is consumed by LibGit2#
1662+
operation.exec = IntPtr.Zero;
16561663
}
16571664

16581665
return operation;

0 commit comments

Comments
 (0)
0