diff options
Diffstat (limited to 'bin/gitano-post-receive-hook.in')
-rw-r--r-- | bin/gitano-post-receive-hook.in | 9 |
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 |