diff options
author | Antonio Facciolo <antonio.facciolo@ad-notam.com> | 2016-11-30 17:27:39 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-05 12:25:45 +0100 |
commit | 947d2ee21b63404d19e835f275f85926be2f7f0a (patch) | |
tree | c2d2153890bce884c84ee0e423c994b32d068a56 /cmd/serve.go | |
parent | d07c955e2a6359937ecff458d450e328861da5e6 (diff) | |
download | gitea-947d2ee21b63404d19e835f275f85926be2f7f0a.tar.gz gitea-947d2ee21b63404d19e835f275f85926be2f7f0a.zip |
Fixes #316
Export Pusher name as GITEA_PUSHER_NAME env variable
Export also GITEA_UUID, but keep the uuid env variable for backward compatibility
export pusher name ENV variable #316
change env variable prefix to GITEA_
Signed-off-by: Antonio Facciolo <afdev82@gmail.com>
Export also GITEA_UUID #316
Keep uuid env variable for backward compatibility
Diffstat (limited to 'cmd/serve.go')
-rw-r--r-- | cmd/serve.go | 4 |
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. |