Skip to content

Commit 7202df7

Browse files
committed
Merge pull request #1070 from whoisj/fix-crash-submodule-delete
Fixes Issue #1071: Deadlock in Submodules when Directory Structure Changes
2 parents 2c98992 + 1de917e commit 7202df7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/Handles/OidSafeHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ internal class OidSafeHandle : NotOwnedSafeHandleBase
77
{
88
private GitOid? MarshalAsGitOid()
99
{
10-
return IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle);
10+
return IsZero || IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle);
1111
}
1212

1313
private static GitOid MarshalAsGitOid(IntPtr data)

0 commit comments

Comments
 (0)