We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0fb5ac + 480626d commit a6fa0faCopy full SHA for a6fa0fa
src/NerdBank.GitVersioning/ManagedGit/ZLibStream.cs
@@ -56,9 +56,9 @@ public ZLibStream(Stream stream, long length = -1)
56
Span<byte> zlibHeader = stackalloc byte[2];
57
stream.ReadAll(zlibHeader);
58
59
- if (zlibHeader[0] != 0x78 || (zlibHeader[1] != 0x01 && zlibHeader[1] != 0x9C))
+ if (zlibHeader[0] != 0x78 || (zlibHeader[1] != 0x01 && zlibHeader[1] != 0x9C && zlibHeader[1] != 0x5E && zlibHeader[1] != 0xDA))
60
{
61
- throw new GitException();
+ throw new GitException($"Invalid zlib header {zlibHeader[0]:X2} {zlibHeader[1]:X2}");
62
}
63
64
0 commit comments