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 --- routers/repo/http.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers/repo') diff --git a/routers/repo/http.go b/routers/repo/http.go index d943cb2ae9..0d5aa2e3e2 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -268,6 +268,7 @@ func HTTP(ctx *context.Context) { models.EnvPusherName + "=" + authUser.Name, models.EnvPusherID + fmt.Sprintf("=%d", authUser.ID), models.EnvIsDeployKey + "=false", + models.EnvAppURL + "=" + setting.AppURL, } if !authUser.KeepEmailPrivate { -- cgit v1.2.3