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/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db/user.go') diff --git a/internal/db/user.go b/internal/db/user.go index feea7b37..ed43bc52 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -877,7 +877,7 @@ func DeleteInactivateUsers() (err error) { // UserPath returns the path absolute path of user repositories. func UserPath(userName string) string { - return filepath.Join(conf.RepoRootPath, strings.ToLower(userName)) + return filepath.Join(conf.Repository.Root, strings.ToLower(userName)) } func GetUserByKeyID(keyID int64) (*User, error) { -- cgit v1.2.3