mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-21 18:54:39 +02:00
Remove unnecessary entry blob open
This commit is contained in:
parent
1efe0e7ea7
commit
4d17f51417
@ -524,11 +524,7 @@ func CreateOrUpdateFile(ctx context.Context, t *TemporaryUploadRepository, file
|
|||||||
var pointer *lfs.Pointer
|
var pointer *lfs.Pointer
|
||||||
// Get existing lfs pointer if the old path is in lfs
|
// Get existing lfs pointer if the old path is in lfs
|
||||||
if oldEntry != nil && attributesMap[file.Options.fromTreePath] != nil && attributesMap[file.Options.fromTreePath].Get(attribute.Filter).ToString().Value() == "lfs" {
|
if oldEntry != nil && attributesMap[file.Options.fromTreePath] != nil && attributesMap[file.Options.fromTreePath].Get(attribute.Filter).ToString().Value() == "lfs" {
|
||||||
pointerReader, err := oldEntry.Blob().DataAsync()
|
p, err := lfs.ReadPointer(treeObjectContentReader)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
p, err := lfs.ReadPointer(pointerReader)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user