diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 15:22:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 15:22:32 +0800 |
commit | c4a0a404735cdcfdcb805e9fed474c75110bca89 (patch) | |
tree | d4ef0af7722425451f23b6ca06ef90a375a5f6bc /internal/db/migrations/v16.go | |
parent | f59a68c531c680d4488d8d977798f6aa36551bfa (diff) |
conf: overhaul repository settings (#5932)
Diffstat (limited to 'internal/db/migrations/v16.go')
-rw-r--r-- | internal/db/migrations/v16.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |