diff options
author | zeripath <art27@cantab.net> | 2020-09-07 04:53:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 23:53:42 -0400 |
commit | a722dd72db7fb6efd9ec0bf730d6b2364ef6337c (patch) | |
tree | e562376fd01798e4bf9c6c0748ab20989bda2ae5 /cmd | |
parent | d17efaa1146bf0ec9a52b004e6d79f971253b1a2 (diff) | |
download | gitea-a722dd72db7fb6efd9ec0bf730d6b2364ef6337c.tar.gz gitea-a722dd72db7fb6efd9ec0bf730d6b2364ef6337c.zip |
Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes (#12752)
* Set setting.AppURL as GITEA_ROOT_URL environment variable during pushes
Fix #11738
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/serv.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/serv.go b/cmd/serv.go index 2c035111d8..b6cdab8334 100644 --- a/cmd/serv.go +++ b/cmd/serv.go @@ -218,6 +218,7 @@ func runServ(c *cli.Context) error { os.Setenv(models.EnvPRID, fmt.Sprintf("%d", 0)) os.Setenv(models.EnvIsDeployKey, fmt.Sprintf("%t", results.IsDeployKey)) os.Setenv(models.EnvKeyID, fmt.Sprintf("%d", results.KeyID)) + os.Setenv(models.EnvAppURL, setting.AppURL) //LFS token authentication if verb == lfsAuthenticateVerb { |