Re: [git-users] How to define commit policy

2011-08-21 Thread Phlip
Pankaj Gupta wrote:

 When user commit in git repo. we would like certain checks to be done.
 How can that be achieved.

I never use git raw; I always wrap it with fabric.

So fab pull trivially calls git pull, but fab ci:'comment' calls all
our unit tests, then only calls git commit -am'message' if all the
tests pass.

(You do HAVE unit tests, don't you?;)

-- 
  Phlip
  http://c2.com/cgi/wiki?ZeekLand

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] How to define commit policy

2011-08-17 Thread Pankaj Gupta
When user commit in git repo. we would like certain checks to be done.
How can that be achieved.
Is there a manual which talks about that?

P

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] How to define commit policy

2011-08-17 Thread David Aguilar
If you control the git install you can modify the template files to enable 
pre-commit hooks (but you can still disable them with a git commit flag).  
These are the boiler plate files written to .git/ at init and clone time. 

you can also run checks using Jenkins or whatnot against a designated shared 
repo. There's a handful of hooks you can run on the receiving (server) side 
too.  What are you trying to accomplish?  Reading about git hooks is one 
place to start. man githooks
-- 
David

On Aug 16, 2011, at 11:05 PM, Pankaj Gupta synopsys_pan...@yahoo.co.in wrote:

 When user commit in git repo. we would like certain checks to be done.
 How can that be achieved.
 Is there a manual which talks about that?
 
 P
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Git for human beings group.
 To post to this group, send email to git-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 git-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/git-users?hl=en.
 

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.