summaryrefslogtreecommitdiffstats
path: root/models/migrations/v28.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/migrations/v28.go')
-rw-r--r--models/migrations/v28.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/migrations/v28.go b/models/migrations/v28.go
index 587e944ce6..a849fea3c2 100644
--- a/models/migrations/v28.go
+++ b/models/migrations/v28.go
@@ -60,9 +60,9 @@ func addRepoSize(x *xorm.Engine) (err error) {
}
repoPath := filepath.Join(setting.RepoRootPath, strings.ToLower(user.Name), strings.ToLower(repo.Name)) + ".git"
- countObject, err := git.GetRepoSize(repoPath)
+ countObject, err := git.CountObjects(repoPath)
if err != nil {
- log.Warn("GetRepoSize: %v", err)
+ log.Warn("CountObjects: %v", err)
continue
}