[Kde-scm-interest] Post-commit hooks script

Jean-Nicolas Artaud jean.nicolas.artaud at kogmbh.com
Thu Dec 3 11:51:33 CET 2009


Hello,

I am Jean-Nicolas Artaud, aka morice-net on irc. I am the intern of the Ko 
GmbH you surely know. I have to write down the "post-commit hooks" 

http://techbase.kde.org/Projects/MovetoGit#post-commit_hooks

As I was talking with thiago, he said me that what I have to do is not to 
write post-commit hooks but post-update hooks... The reason I can find to this 
mistake is that was called like that on the SVN script. Let me explain the 
differences between this two kind of things in Git :

Post-commit is locally, with Git and Post-update is on the Gitorious server.
When someone push something (and not commit something) 
    * BUG/CCMAIL
    * email/CIA
    * license header checks 
should be checked, not on the local machine.
This is a fundamental difference cause, instead of use a log commit to check 
what is written in it, I have to check all commit-logs of the push. I have to 
check license header of all changed files of all commits.

Another thing is *necessary* for me is to have an example of a post-update 
hook script because I cannot imagine what parameters are necessary for this. I 
only explanation I've found is : "It takes a variable number of parameters, 
each of which is the name of ref that was actually updated." (here :	
http://book.git-scm.com/5_git_hooks.html). 

If something is wrong or bad, please explain it clearly. If you have only 
ideas of thing which could help, don't hesitate and post them. Please think 
about it.

Thank you.

Jean-Nicolas, aka morice-net


More information about the Kde-scm-interest mailing list