1
0
Fork 0
forked from forgejo/forgejo

Fix LFS commit finder not working (#15856)

* Create a copy of the sha bytes.


Co-authored-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
KN4CK3R 2021-05-14 15:12:11 +02:00 committed by GitHub
parent 1a5659943e
commit df72cf6211
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View file

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