1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

remove deprecated code for Gogs compitable (#2041)

This commit is contained in:
Lunny Xiao 2017-06-23 14:29:53 +08:00 committed by GitHub
parent c259c436d7
commit f6450b8f92

View File

@ -585,15 +585,7 @@ func NewContext() {
CustomPath = os.Getenv("GITEA_CUSTOM")
if len(CustomPath) == 0 {
// For backward compatibility
// TODO: drop in 1.1.0 ?
CustomPath = os.Getenv("GOGS_CUSTOM")
if len(CustomPath) == 0 {
CustomPath = workDir + "/custom"
} else {
log.Warn(`Usage of GOGS_CUSTOM is deprecated and will be *removed* in a future release,
please consider changing to GITEA_CUSTOM`)
}
CustomPath = workDir + "/custom"
}
if len(CustomPID) > 0 {