You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Tips for handling deltas: https://github.com/choffmeister/gitnet/blob/4d907623d5ce2d79a8875aee82e718c12a8aad0b/src/GitNet/GitPack.cs
71
+
if(type!=packObjectType)
72
+
{
73
+
thrownewGitException($"An object of type {objectType} could not be located at offset {offset}."){ErrorCode=GitException.ErrorCodes.ObjectNotFound};
74
+
}
67
75
68
-
// Tips for handling deltas: https://github.com/choffmeister/gitnet/blob/4d907623d5ce2d79a8875aee82e718c12a8aad0b/src/GitNet/GitPack.cs
69
-
if(type!=packObjectType)
76
+
returnnewZLibStream(stream,decompressedSize);
77
+
}
78
+
catch(EndOfStreamExceptioneof)
70
79
{
71
-
thrownewGitException($"An object of type {objectType} could not be located at offset {offset}."){ErrorCode=GitException.ErrorCodes.ObjectNotFound};
80
+
thrownewGitException($"An object of type {objectType} could not be located at offset {offset}.",eof){ErrorCode=GitException.ErrorCodes.ObjectNotFound};
0 commit comments