From 5c5cffbff5488b1131e6fa5b671fe61fad3d4d5d Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 26 Aug 2012 11:06:57 +0100 Subject: BIN: Ensure post-receive hook always runs update-server-info --- bin/gitano-post-receive-hook | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/gitano-post-receive-hook b/bin/gitano-post-receive-hook index 61c07dc..bd52155 100644 --- a/bin/gitano-post-receive-hook +++ b/bin/gitano-post-receive-hook @@ -113,6 +113,13 @@ if repo.name == "gitano-admin" and updates[admin_repo.HEAD] then if how ~= "exit" or why ~= 0 then gitano.log.crit("Updating SSH keys didn't work?") end +elseif repo.name ~= "gitano-admin" then + -- Not gitano-admin at all, so run the update-server-info stuff + gitano.log.chat("Updating server info for dumb HTTP transport") + local ok, err = repo.git:update_server_info() + if not ok then + gitano.log.warn(err) + end end if repo:uses_hook("post-receive") then -- cgit v1.2.1