I have installed git and gitosis and I need to add a check that the user name is valid when something is pushed into the repository.
I reckon the pre-receive hook i
Adding os.environ['WHATVER_USER']=user at ~line 202 in serve.py should do the trick...