Git/gitosis: How to check validity of user name and email?

后端 未结 5 1668
傲寒
傲寒 2020-12-03 05:57

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

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 06:09

    Adding os.environ['WHATVER_USER']=user at ~line 202 in serve.py should do the trick...

提交回复
热议问题