summaryrefslogtreecommitdiff
path: root/bin/gitano-post-receive-hook.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitano-post-receive-hook.in')
-rw-r--r--bin/gitano-post-receive-hook.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gitano-post-receive-hook.in b/bin/gitano-post-receive-hook.in
index 45a1b7e..96d5fb2 100644
--- a/bin/gitano-post-receive-hook.in
+++ b/bin/gitano-post-receive-hook.in
@@ -30,7 +30,7 @@ local project = luxio.getenv("GITANO_PROJECT") or ""
local source = luxio.getenv("GITANO_SOURCE") or "ssh"
-- Now load the administration data
-
+gitano.config.repo_path(repo_root)
local admin_repo = gitano.git.repository.new((repo_root or "") .. "/gitano-admin.git")
if not admin_repo then
@@ -112,7 +112,7 @@ if repo.name == "gitano-admin" and updates[admin_repo.HEAD] then
gitano.log.chat("All repositories updated where possible.")
local proc = sp.spawn({
gitano.config.lib_bin_path() .. "/gitano-update-ssh",
- config.global.repository_root
+ gitano.config.repo_path()
})
local how, why = proc:wait()
if how ~= "exit" or why ~= 0 then