0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-21 16:45:03 +02:00

Update comment

This commit is contained in:
bytedream 2025-05-08 12:59:09 +02:00
parent 614a4b34d9
commit 2c9c9e1b14

View File

@ -524,7 +524,7 @@ func CreateOrUpdateFile(ctx context.Context, t *TemporaryUploadRepository, file
var pointer lfs.Pointer
// Get existing lfs pointer if the operation is a pure rename and the old path is in lfs. This prevents the
// re-generation/re-hash of a lfs pointer to the same data
// regeneration/rehash of a lfs pointer to the same data
if file.Operation == "rename" && attributesMap[file.Options.fromTreePath] != nil && attributesMap[file.Options.fromTreePath].Get(attribute.Filter).ToString().Value() == "lfs" {
if pointer, err = lfs.ReadPointer(treeObjectContentReader); err != nil {
return err