Fix LFS commit finder not working (#15856) (#15874)

* Create a copy of the sha bytes.

Co-authored-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
KN4CK3RandAndrew Thornton authored and GitHub committed 2021-05-14 16:39:59 +01:00
1 parent cbaf8e8785
commit f773733252
3 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -303,7 +303,7 @@ revListLoop:
commits[0] = string(commitID)
}
}
treeID = To40ByteSHA(treeID)
treeID = To40ByteSHA(treeID, treeID)
_, err = batchStdinWriter.Write(treeID)
if err != nil {
return nil, err