summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-26 11:06:57 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-08-26 11:06:57 +0100
commit5c5cffbff5488b1131e6fa5b671fe61fad3d4d5d (patch)
treeb553562a1d0fb20fd80b9d55b4473713de4c572e /bin
parentbfd0bbc4957050269ad85d0ac334316d334eb867 (diff)
downloadgitano-5c5cffbff5488b1131e6fa5b671fe61fad3d4d5d.tar.gz
BIN: Ensure post-receive hook always runs update-server-info
Diffstat (limited to 'bin')
-rw-r--r--bin/gitano-post-receive-hook7
1 files changed, 7 insertions, 0 deletions
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