diff options
-rw-r--r-- | bin/gitano-post-receive-hook.in | 2 | ||||
-rw-r--r-- | bin/gitano-pre-receive-hook.in | 2 | ||||
-rw-r--r-- | bin/gitano-update-hook.in | 2 | ||||
-rw-r--r-- | lib/gitano/supple.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/gitano-post-receive-hook.in b/bin/gitano-post-receive-hook.in index 797ce26..e56a778 100644 --- a/bin/gitano-post-receive-hook.in +++ b/bin/gitano-post-receive-hook.in @@ -131,7 +131,7 @@ if repo:uses_hook("post-receive") then gitano.log.debug("Configuring for post-receive hook") gitano.actions.set_supple_globals("post-receive") gitano.log.info("Running repository post-receive hook") - local ok, msg = gitano.supple.run_hook(repo, "post-receive", updates) + local ok, msg = gitano.supple.run_hook("post-receive", repo, updates) if not ok then gitano.log.crit(msg or "No reason given, but errored somehow.") end diff --git a/bin/gitano-pre-receive-hook.in b/bin/gitano-pre-receive-hook.in index 4dd6ff3..1477401 100644 --- a/bin/gitano-pre-receive-hook.in +++ b/bin/gitano-pre-receive-hook.in @@ -91,7 +91,7 @@ if repo:uses_hook("pre-receive") then gitano.log.debug("Configuring for pre-receive hook") gitano.actions.set_supple_globals("pre-receive") gitano.log.info("Running repository pre-receive hook") - local ok, msg = gitano.supple.run_hook(repo, "pre-receive", updates) + local ok, msg = gitano.supple.run_hook("pre-receive", repo, updates) if not ok then gitano.log.crit(msg or "No reason given, but errored somehow.") end diff --git a/bin/gitano-update-hook.in b/bin/gitano-update-hook.in index 980ebc2..7658d0d 100644 --- a/bin/gitano-update-hook.in +++ b/bin/gitano-update-hook.in @@ -255,7 +255,7 @@ if repo:uses_hook("update") then gitano.log.debug("Configuring for update hook") gitano.actions.set_supple_globals("update") gitano.log.info("Running repository update hook") - local ok, msg = gitano.supple.run_hook(repo, "update", + local ok, msg = gitano.supple.run_hook("update", repo, refname, oldsha, newsha) if not ok then gitano.log.fatal(msg or "No reason given to refuse action.") diff --git a/lib/gitano/supple.lua b/lib/gitano/supple.lua index 9520c3d..e347954 100644 --- a/lib/gitano/supple.lua +++ b/lib/gitano/supple.lua @@ -129,7 +129,7 @@ return (function(hookname, repo, ...) end)(...) ]] -local function run_hook(repo, hook, ...) +local function run_hook(hook, repo, ...) local proxy = get_repo_proxy(repo) log.ddebug("Entering supple.host.run()") return supple.host.run(supple_runtime_code, "@gitano.supple.runtime", |