mirror of
https://github.com/gogs/gogs.git
synced 2026-01-23 07:42:21 +01:00
migrations/v16: only Warn if repository happens to have bad data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user