I want to * timeout git operations in push email
So that I don't get the server overloaded by git diff that takes ages
Acceptance criteria
Each git operation in post-receive-email is verified
When relevant (e.g. git diff) a "timout 5" is added in front of the operation. The 2 identified operations are
generation of "Summary of changes", impacted by very large diff or diff including a large file
generation of "Log", impacted by very large history (for instance import of linux kernel) or log with a very large file.
The error case (timeout) is properly handled with a message that indicates that the operation took too much time and was aborted.
When we reach a timeout, a mail is sent to site admin to warn about a potential mis-use of git.
Attachments Empty
CC list Nouha Terzi (terzino), Denis PILAT (denis_pilat), Ahmed HOSNI (hosniah), Thomas Gerbet (tgerbet)