From c4a0a404735cdcfdcb805e9fed474c75110bca89 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 22 Feb 2020 15:22:32 +0800 Subject: conf: overhaul repository settings (#5932) --- internal/db/migrations/v16.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/migrations/v16.go') diff --git a/internal/db/migrations/v16.go b/internal/db/migrations/v16.go index 91bf4925..572dba9c 100644 --- a/internal/db/migrations/v16.go +++ b/internal/db/migrations/v16.go @@ -60,7 +60,7 @@ func updateRepositorySizes(x *xorm.Engine) (err error) { continue } - repoPath := filepath.Join(conf.RepoRootPath, strings.ToLower(user.Name), strings.ToLower(repo.Name)) + ".git" + repoPath := filepath.Join(conf.Repository.Root, strings.ToLower(user.Name), strings.ToLower(repo.Name)) + ".git" countObject, err := git.GetRepoSize(repoPath) if err != nil { log.Warn("GetRepoSize: %v", err) -- cgit v1.2.3