From f31443d6a89663b1f10315f72cef5867ae45f537 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Wed, 28 Apr 2021 00:33:16 +0800 Subject: [PATCH] not update updated uinx for `git gc` (#15637) fix #15634 Signed-off-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 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 }