diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-06-18 09:18:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-18 01:18:07 +0000 |
commit | 71e4740946ef652e06cd078cea1c8bc67fa7d64d (patch) | |
tree | 349312be3323ff5cea50f2d7b4ee998daab904a6 /services/repository/files/diff.go | |
parent | ecc6685c203144f9926f1301c66f7b17ffca3f02 (diff) | |
download | gitea-71e4740946ef652e06cd078cea1c8bc67fa7d64d.tar.gz gitea-71e4740946ef652e06cd078cea1c8bc67fa7d64d.zip |
Refactor some file edit related code (#34744)
Follow up #34350
---------
Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'services/repository/files/diff.go')
-rw-r--r-- | services/repository/files/diff.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/files/diff.go b/services/repository/files/diff.go index 0b3550452a..50d01f9d7c 100644 --- a/services/repository/files/diff.go +++ b/services/repository/files/diff.go @@ -29,7 +29,7 @@ func GetDiffPreview(ctx context.Context, repo *repo_model.Repository, branch, tr } // Add the object to the database - objectHash, err := t.HashObject(ctx, strings.NewReader(content)) + objectHash, err := t.HashObjectAndWrite(ctx, strings.NewReader(content)) if err != nil { return nil, err } |