From c272de6a9dd33ddf372d5ce54d9df55fca548ed9 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 24 Apr 2013 21:24:18 +0100 Subject: POST-RECEIVE: Cause the info/web/last-modified to be updated --- bin/gitano-post-receive-hook.in | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.1