Skip to content

Commit 1de917e

Browse files
author
J Wyman
committed
fixed issue cause by physical directory removal of submodules
1 parent 2c98992 commit 1de917e

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)