summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGavin Lee <gavlee888@live.ie>2014-05-16 18:07:57 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-05-16 18:08:21 +0100
commitafec65a4de6cecdeb005c6a2757e0aad7bccf98d (patch)
treea5a75357b6e899021627fa8862afa88aa4947a3d /lib
parentf010726f585dc15f71673ca4be749757e9ed10cb (diff)
downloadgitano-afec65a4de6cecdeb005c6a2757e0aad7bccf98d.tar.gz
Short-circuiting hooks if repository is accessed directly
Signed-off-by: Vanush "Misha" Paturyan <misha@cs.nuim.ie>
Diffstat (limited to 'lib')
-rw-r--r--lib/gitano/auth.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitano/auth.lua b/lib/gitano/auth.lua
index 2e275dd..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