Browse Source

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

pull/4280/head
Unknwon 8 years ago
parent
commit
601f174ea0
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 3
      models/migrations/v16.go

3
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

Loading…
Cancel
Save