浏览代码

Drop deprecated GOGS_WORK_DIR use (#2946)

tags/v1.4.0-rc1
Jonas Bröms 6 年前
父节点
当前提交
1f7aab6e19
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0
    4
      modules/setting/setting.go

+ 0
- 4
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 {

正在加载...
取消
保存