From a722dd72db7fb6efd9ec0bf730d6b2364ef6337c Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 7 Sep 2020 04:53:42 +0100 Subject: 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 --- cmd/serv.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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 { -- cgit v1.2.3