I'm running a copy of gitlab-ce
on a server of mine and I would like to do a custom pre-receive
hook that searches for TODOs in the committed code and doesn't allow the push if there are any TODOs found. How can I access the committed code/files if I don't have access to git commands since I'm in the <project_name>.git
directory and not in the actual code directory?
Thank you very much!