summaryrefslogtreecommitdiff
path: root/lib/gitano/auth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitano/auth.lua')
-rw-r--r--lib/gitano/auth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitano/auth.lua b/lib/gitano/auth.lua
index 8c3a4e6..fa30da2 100644
--- a/lib/gitano/auth.lua
+++ b/lib/gitano/auth.lua
@@ -40,6 +40,7 @@ local function set_environment(repo_root, repo, context, transactionid)
["GITANO_PROJECT"] = (repo or {}).name or "",
["GITANO_SOURCE"] = context.source,
["GITANO_TRANSACTION_ID"] = transactionid,
+ ["GITANO_RUNNING"] = "yes",
}
for k, v in pairs(env) do
@@ -49,8 +50,7 @@ local function set_environment(repo_root, repo, context, transactionid)
return env
end
-local function is_authorized(user, source, cmdline)
- local repo_root = os.getenv("GITANO_ROOT")
+local function is_authorized(user, source, cmdline, repo_root)
local keytag = ""
local authorized = false