summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorJonas Bröms <cez81@users.noreply.github.com>2017-11-21 02:52:47 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-21 09:52:47 +0800
commit1f7aab6e1976a58fef4c0f328d7ed30a30d3b476 (patch)
tree49e1e0b69e0848b4e4929ff5fdd7555e4da203da /modules/setting/setting.go
parentfd09d1ffb8e47e2808fe8c24949271b39e7b672d (diff)
downloadgitea-1f7aab6e1976a58fef4c0f328d7ed30a30d3b476.tar.gz
gitea-1f7aab6e1976a58fef4c0f328d7ed30a30d3b476.zip
Drop deprecated GOGS_WORK_DIR use (#2946)
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 6fe0214a8b..d15a76f9bf 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -562,13 +562,9 @@ func getAppPath() (string, error) {
func getWorkPath(appPath string) string {
workPath := ""
giteaWorkPath := os.Getenv("GITEA_WORK_DIR")
- gogsWorkPath := os.Getenv("GOGS_WORK_DIR")
if len(giteaWorkPath) > 0 {
workPath = giteaWorkPath
- } else if len(gogsWorkPath) > 0 {
- log.Warn(`Usage of GOGS_WORK_DIR is deprecated and will be *removed* in a future release, please consider changing to GITEA_WORK_DIR`)
- workPath = gogsWorkPath
} else {
i := strings.LastIndex(appPath, "/")
if i == -1 {