migrations/v16: only Warn if repository happens to have bad data

pull/4280/head
Unknwon 2017-03-12 03:08:25 -04:00
parent a34c21cde3
commit 601f174ea0
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
1 changed files with 2 additions and 1 deletions

View File

@ -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