We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8f974f + d89638c commit af85e63Copy full SHA for af85e63
1 file changed
LibGit2Sharp/ObjectDatabase.cs
@@ -202,7 +202,7 @@ public virtual ObjectId Write<T>(Stream stream, long numberOfBytesToConsume) whe
202
throw new ArgumentException("The stream cannot be read from.", nameof(stream));
203
}
204
205
- using (var odbStream = Proxy.git_odb_open_wstream(handle, numberOfBytesToConsume, GitObjectType.Blob))
+ using (var odbStream = Proxy.git_odb_open_wstream(handle, numberOfBytesToConsume, GitObject.TypeToGitKindMap[typeof(T)]))
206
{
207
var buffer = new byte[4 * 1024];
208
long totalRead = 0;
0 commit comments