summaryrefslogtreecommitdiffstats
path: root/models/update.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-12-27 21:15:04 +0000
committerGitHub <noreply@github.com>2019-12-27 21:15:04 +0000
commit4acca9d2e8618a5283495fcd3b313fd53c953f18 (patch)
tree3c0cfba28db36ae362e257b3fafe43773e9f30d2 /models/update.go
parentf2d03cda96eb5febbf9801f6b6cf5daa37220bc9 (diff)
downloadgitea-4acca9d2e8618a5283495fcd3b313fd53c953f18.tar.gz
gitea-4acca9d2e8618a5283495fcd3b313fd53c953f18.zip
Properly enforce gitea environment for pushes (#9501)
#8982 attempted to enforce the gitea environment for pushes - unfortunately it tested the settings before they were actually read in - and therefore does not do that!
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/update.go b/models/update.go
index b6c04bd515..212f22cfc1 100644
--- a/models/update.go
+++ b/models/update.go
@@ -24,6 +24,7 @@ const (
EnvPusherID = "GITEA_PUSHER_ID"
EnvKeyID = "GITEA_KEY_ID"
EnvIsDeployKey = "GITEA_IS_DEPLOY_KEY"
+ EnvIsInternal = "GITEA_INTERNAL_PUSH"
)
// CommitToPushCommit transforms a git.Commit to PushCommit type.