From 1de917e700e4fdb440d95ffe6cee48034042ac92 Mon Sep 17 00:00:00 2001 From: J Wyman Date: Wed, 3 Jun 2015 13:44:14 -0700 Subject: [PATCH] fixed issue cause by physical directory removal of submodules --- LibGit2Sharp/Core/Handles/OidSafeHandle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs index a30959506..ced01e50a 100644 --- a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs @@ -7,7 +7,7 @@ internal class OidSafeHandle : NotOwnedSafeHandleBase { private GitOid? MarshalAsGitOid() { - return IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle); + return IsZero || IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle); } private static GitOid MarshalAsGitOid(IntPtr data)