I need to create a plugin that intercepts file requests from the client, runs a check on the files in the request via another program and then either allows or rejects the files from being transferred to the user. The operations that this needs to run on is pull, clone, fetch, or similar commands. Basically anytime files are leaving the remote repo. I have not been able to find anything on the forums on this. Any help is appreciated.
Thanks in advance.