summaryrefslogtreecommitdiff
path: root/bin/gitano-update-hook.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitano-update-hook.in')
-rw-r--r--bin/gitano-update-hook.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/gitano-update-hook.in b/bin/gitano-update-hook.in
index bb7d8fe..15da2a9 100644
--- a/bin/gitano-update-hook.in
+++ b/bin/gitano-update-hook.in
@@ -35,6 +35,12 @@ local username = luxio.getenv("GITANO_USER") or "gitano/anonymous"
local keytag = luxio.getenv("GITANO_KEYTAG") or "unknown"
local project = luxio.getenv("GITANO_PROJECT") or ""
local source = luxio.getenv("GITANO_SOURCE") or "ssh"
+local running = luxio.getenv("GITANO_RUNNING")
+
+-- Check whether we are called through gitano-auth
+if not running then
+ return 0
+end
-- Now load the administration data
gitano.config.repo_path(repo_root)