aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 3ac29d7ec3..1d72b5c30f 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -258,7 +258,11 @@ func runServ(c *cli.Context) error {
}
}
+ os.Setenv("GITEA_PUSHER_NAME", user.Name)
+
uuid := gouuid.NewV4().String()
+ os.Setenv("GITEA_UUID", uuid)
+ // Keep the old env variable name for backward compability
os.Setenv("uuid", uuid)
// Special handle for Windows.