remove deprecated code for Gogs compitable (#2041)
This commit is contained in:
parent
c259c436d7
commit
f6450b8f92
1 changed files with 1 additions and 9 deletions
|
@ -584,16 +584,8 @@ func NewContext() {
|
|||
Cfg = ini.Empty()
|
||||
|
||||
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`)
|
||||
}
|
||||
}
|
||||
|
||||
if len(CustomPID) > 0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue