From 875501584b6ee1619099fae3b9ee0a973bd65bac Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 28 Apr 2021 01:20:47 +0100 Subject: [PATCH] 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> --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index 329e63cc421b..f2fc13431235 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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 }