git - How to track who pushed into a Gitosis repository? -


I am using guitosis to manage a set of repositories. The problem I have is that the GTOSIS does not maintain a record whose user pushed a special commitment, only one information I have "author" and "committee" fields that commit themselves, and to "push" Anything from can be set.

Now I know that a single "push" can send many people to the Gitosys server, and each of them will have been created by different developers, so let me tell you It should be stopped that I am only interested in the head in the branch that has been pushed. This commitment has been made (should be made!) By the person making the release, so I want to know who he is, if I can do the problems then I can kill him.

I have this idea, use a hook on the server to compare the head commute committi for the Gitosos username, if they are both "john.doe@example.com" then there is a pushing compass and Push is allowed, otherwise it has been rejected. Is this possible? Which hook should I use - I think "update" is one, although there are also possibilities for pre-recovery and post-receipt.

I thought about using the received hook to get the post, to get it to enter the user name pushing the annotated tag message. The problem with this is that a committed person Will not be aware of the tag.

I am open to other tips on how to do this. The basic idea is that I want to know how the Zeitosist user pushed a particular branch.

If I found out who pushed a tag (or the person who tagged the fever is restricted) then it would be better!

AFAIK gitosis leave it to SSH to fully determine (Public key authentication by) which is allowed to access the repo and who is not. From there, for all git-serve examples, all users are identified by 'writer' and 'commutator' fields.

What is wrong with using 'writer' and 'commutator' fields anyway? If you are worried about cheating people, use two treasures: 'development' and 'release', and use a more improved access control scheme in your gitosis.conf so that only 'special' Allowed to write


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -