summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-02 11:52:48 +0800
committerUnknwon <u@gogs.io>2015-08-02 11:52:48 +0800
commitd496d0cc4d4d07fc77a7961e178225062f080d72 (patch)
treef2250100f3bd2cf6f59b2cf822346caa159d5b8a /modules/setting
parent1490e862cc9883a8802c9a92da28312bd1663ac0 (diff)
downloadgitea-d496d0cc4d4d07fc77a7961e178225062f080d72.tar.gz
gitea-d496d0cc4d4d07fc77a7961e178225062f080d72.zip
replace path.Join
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 9e9e564b4c..6b8eb5ecd7 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -203,11 +203,11 @@ func NewConfigContext() {
CustomPath = os.Getenv("GOGS_CUSTOM")
if len(CustomPath) == 0 {
- CustomPath = path.Join(workDir, "custom")
+ CustomPath = workDir + "/custom"
}
if len(CustomConf) == 0 {
- CustomConf = path.Join(CustomPath, "conf/app.ini")
+ CustomConf = CustomPath + "/conf/app.ini"
}
if com.IsFile(CustomConf) {