diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-22 15:50:36 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-22 15:50:36 +0100 |
commit | 2ca181a87a6d3661146791f5391c01ca635df44f (patch) | |
tree | 7834493cec052768fcb70018e61c2528e1a8e815 /lib/gitano/repository.lua | |
parent | 53e805632ef0b8d659d6702f0066e83e99042aea (diff) | |
download | gitano-2ca181a87a6d3661146791f5391c01ca635df44f.tar.gz |
HOOKS: Add support for pre-receive hooks
Diffstat (limited to 'lib/gitano/repository.lua')
-rw-r--r-- | lib/gitano/repository.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitano/repository.lua b/lib/gitano/repository.lua index 15136a9..8d00f41 100644 --- a/lib/gitano/repository.lua +++ b/lib/gitano/repository.lua @@ -265,7 +265,7 @@ end function repo_method:check_and_upgrade_hooks() log.ddebug("Checking hooks for", self.name) - for _, hook in ipairs {"update", "post-receive"} do + for _, hook in ipairs {"pre-receive", "update", "post-receive"} do local ok, msg = self:check_and_upgrade_hook(hook) if not ok then return nil, msg |