diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-01 10:22:55 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-01 10:22:55 +0100 |
commit | f12458c7194b61d66621fe1731c6bc21d54d18c4 (patch) | |
tree | ecf22c58c7790580e7e2cd82a585f702bd59d748 /bin | |
parent | da2dc29bb45753686f1ca2aed548e9216b83c7e8 (diff) | |
download | gitano-f12458c7194b61d66621fe1731c6bc21d54d18c4.tar.gz |
SUPPLE: Reorder run_hook() args for neatness
Diffstat (limited to 'bin')
-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 |
3 files changed, 3 insertions, 3 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.") |