diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-26 11:06:57 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-26 11:06:57 +0100 |
commit | 5c5cffbff5488b1131e6fa5b671fe61fad3d4d5d (patch) | |
tree | b553562a1d0fb20fd80b9d55b4473713de4c572e | |
parent | bfd0bbc4957050269ad85d0ac334316d334eb867 (diff) | |
download | gitano-5c5cffbff5488b1131e6fa5b671fe61fad3d4d5d.tar.gz |
BIN: Ensure post-receive hook always runs update-server-info
-rw-r--r-- | bin/gitano-post-receive-hook | 7 |
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 |