summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2013-04-24 21:24:18 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2013-04-24 21:24:18 +0100
commitc272de6a9dd33ddf372d5ce54d9df55fca548ed9 (patch)
treeb3cabe2daca14859b08d0c3fd76ab3a79381c229 /bin
parent8056c2524b478575b2a46a724c79f2b18d59a806 (diff)
downloadgitano-c272de6a9dd33ddf372d5ce54d9df55fca548ed9.tar.gz
POST-RECEIVE: Cause the info/web/last-modified to be updated
Diffstat (limited to 'bin')
-rw-r--r--bin/gitano-post-receive-hook.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/gitano-post-receive-hook.in b/bin/gitano-post-receive-hook.in
index bad7053..bc5b88d 100644
--- a/bin/gitano-post-receive-hook.in
+++ b/bin/gitano-post-receive-hook.in
@@ -126,6 +126,15 @@ elseif repo.name ~= "gitano-admin" then
if not ok then
gitano.log.warn(err)
end
+ gitano.log.info("Updating last-modified date")
+ local shas = {}
+ for _, t in pairs(updates) do
+ shas[#shas+1] = t.newsha
+ end
+ local ok, err = repo:update_modified_date(shas)
+ if not ok then
+ gitano.log.warn(err)
+ end
end
if repo:uses_hook("post-receive") then