summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-06 15:32:42 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-06 15:32:42 +0100
commitd068d64d01dbfad2162ce5c31474d868f418e32c (patch)
tree89bdbc2643528501c988668681f991814709bc32
parent3a0bc5764466754f883ac987d958eead6de877e8 (diff)
downloadgitano-d068d64d01dbfad2162ce5c31474d868f418e32c.tar.gz
SUPPLE: Quick fix for global hook support
-rw-r--r--lib/gitano/supple.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitano/supple.lua b/lib/gitano/supple.lua
index 2627c45..32e3058 100644
--- a/lib/gitano/supple.lua
+++ b/lib/gitano/supple.lua
@@ -134,8 +134,9 @@ return (function(hookname, repo, info, ...)
end)(...)
]]
-local function run_hook(hook, repo, info, ...)
- local proxy = get_repo_proxy(repo)
+local function run_hook(hook, _repo, info, ...)
+ local proxy = get_repo_proxy(_repo)
+ repo = _repo
log.ddebug("Entering supple.host.run()")
return supple.host.run(supple_runtime_code, "@gitano.supple.runtime",
hook, proxy, info, ...)