Fix lfs management find (#15537)

Fix #15236

* Do not do 40byte conversion within ParseTreeLine
* Missed a to40ByteSHA

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
Lunny XiaoandAndrew Thornton authored and GitHub committed 2021-04-21 18:31:59 +02:00
1 parent 9b8ffa1c7a
commit 2255afffad
4 files changed
+7 -4

No files matched your search

+2
View File
@@ -11,6 +11,7 @@ import (
"context"
"io"
"strconv"
"strings"
"sync"
"code.gitea.io/gitea/modules/git"
@@ -78,6 +79,7 @@ loop:
_ = catFileBatchReader.CloseWithError(err)
break
}
sha = strings.TrimSpace(sha)
// Throw away the blob
if _, err := bufferedReader.ReadString(' '); err != nil {
_ = catFileBatchReader.CloseWithError(err)