1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

not update updated uinx for git gc (#15637) (#15641)

Backport #15637

fix #15634

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
zeripath 2021-04-28 01:20:47 +01:00 committed by GitHub
parent 4190c134e6
commit 875501584b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,7 +749,7 @@ func (repo *Repository) updateSize(e Engine) error {
}
repo.Size = size
_, err = e.ID(repo.ID).Cols("size").Update(repo)
_, err = e.ID(repo.ID).Cols("size").NoAutoTime().Update(repo)
return err
}