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.
1 parent 236e1ce commit 7fa8405Copy full SHA for 7fa8405
src/Microsoft.Build.Tasks.Git/GitDataReader/GitReferenceResolver.cs
@@ -254,6 +254,7 @@ internal static string ReadReferenceFromFile(string path)
254
private string? ResolvePackedReference(string reference)
255
=> _lazyPackedReferences.Value.TryGetValue(reference, out var objectId) ? objectId : null;
256
257
+ // SHA1 hashes are 40 hex characters, SHA256 hashes are 64 hex characters
258
private static bool IsObjectId(string reference)
259
=> (reference.Length == 40 || reference.Length == 64) && reference.All(CharUtils.IsHexadecimalDigit);
260
}
0 commit comments