mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-26 03:52:24 +00:00
[BRANDING] alias {FORGEJO,GITEA}_{CUSTOM,WORK_DIR}
FORGEJO_* environment variables are set to the corresponding GITEA_* variable when the cli starts. This approach is intended to minimize the conflicts on rebase. All occurences of GITEA_* are left untouched in the codebase and they are only changed to FORGEJO_* if exposed to the user. (cherry picked from commite466f9d10e) (cherry picked from commite33e95931b) (cherry picked from commit2cfc6519b7) (cherry picked from commitaf8864373a) (cherry picked from commita0550ff339) (cherry picked from commit24dc0a5191) (cherry picked from commite255eea2b4)
This commit is contained in:
parent
454d705e83
commit
0c4f5afa7a
3 changed files with 20 additions and 5 deletions
|
|
@ -157,6 +157,9 @@ func SetCustomPathAndConf(providedCustom, providedConf, providedWorkPath string)
|
|||
if giteaCustom, ok := os.LookupEnv("GITEA_CUSTOM"); ok {
|
||||
CustomPath = giteaCustom
|
||||
}
|
||||
if forgejoCustom, ok := os.LookupEnv("FORGEJO_CUSTOM"); ok {
|
||||
CustomPath = forgejoCustom
|
||||
}
|
||||
if len(providedCustom) != 0 {
|
||||
CustomPath = providedCustom
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue