summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-04-28 00:33:16 +0800
committerGitHub <noreply@github.com>2021-04-28 00:33:16 +0800
commitf31443d6a89663b1f10315f72cef5867ae45f537 (patch)
tree645417bd504f5b8aff20ad4f2c9e304def3dbe4d /models/repo.go
parente711050450584c84ca53b137308d969119be75ae (diff)
downloadgitea-f31443d6a89663b1f10315f72cef5867ae45f537.tar.gz
gitea-f31443d6a89663b1f10315f72cef5867ae45f537.zip
not update updated uinx for `git gc` (#15637)
fix #15634 Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index fc673cace8..cea874769d 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -747,7 +747,7 @@ func (repo *Repository) updateSize(e Engine) error {
}
repo.Size = size + lfsSize
- _, err = e.ID(repo.ID).Cols("size").Update(repo)
+ _, err = e.ID(repo.ID).Cols("size").NoAutoTime().Update(repo)
return err
}