From 601f174ea01f8ba1f3239209595078ef29ceb72f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 12 Mar 2017 03:08:25 -0400 Subject: [PATCH] migrations/v16: only Warn if repository happens to have bad data --- models/migrations/v16.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/migrations/v16.go b/models/migrations/v16.go index e44d524a4..845a8762b 100644 --- a/models/migrations/v16.go +++ b/models/migrations/v16.go @@ -51,7 +51,8 @@ func updateRepositorySizes(x *xorm.Engine) (err error) { countObject, err := git.GetRepoSize(repoPath) if err != nil { - return fmt.Errorf("GetRepoSize: %v", err) + log.Warn("GetRepoSize: %v", err) + return nil } repo.Size = countObject.Size + countObject.SizePack