You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by DePriest Richard 403 <ri...@crackerbarrel.com> on 2008/03/19 21:58:51 UTC

Pre-commit hooks

I have another question about pre-commit hooks. I have been trying to
get a pre-commit hook to process and not let anyone commit a change
without having a lock on the modified file. When I test my hook the
commit fails everytime. If I remove the pre-commit hook the commit will
work fine. I just figured I have something not coded correctly in my
hook or the perl scipt it calls. 
After numerous tests, I have discovered a couple of things. It is
looking like th pre-commit hook is not executing correctly. The reason I
say that is because I coded a pre-commit hook with only an exit 0 line.
This hook causes the commit to fail. I am using the tortoise GUI.
Anybody out there got any ideas. 
 
All ideas greatly appreciated.
 
Rick DePriest
Project Manager - Retail Systems
Cracker Barrel Old Country Stores, Inc.
Ph. (615) 443-9845
Email: rdepries@crackerbarrel.com
 

Re: Pre-commit hooks

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 19, 2008, at 16:58, DePriest Richard 403 wrote:

> I have another question about pre-commit hooks. I have been trying  
> to get a pre-commit hook to process and not let anyone commit a  
> change without having a lock on the modified file. When I test my  
> hook the commit fails everytime. If I remove the pre-commit hook  
> the commit will work fine. I just figured I have something not  
> coded correctly in my hook or the perl scipt it calls.
> After numerous tests, I have discovered a couple of things. It is  
> looking like th pre-commit hook is not executing correctly. The  
> reason I say that is because I coded a pre-commit hook with only an  
> exit 0 line. This hook causes the commit to fail. I am using the  
> tortoise GUI. Anybody out there got any ideas.

Can't suggest anything unless you show us the code of the hook script  
itself...



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Pre-commit hooks

Posted by Hari Kodungallur <hk...@gmail.com>.
On Wed, Mar 19, 2008 at 2:58 PM, DePriest Richard 403 <
richard.depriest@crackerbarrel.com> wrote:

>  I have another question about pre-commit hooks. I have been trying to get
> a pre-commit hook to process and not let anyone commit a change without
> having a lock on the modified file. When I test my hook the commit fails
> everytime. If I remove the pre-commit hook the commit will work fine. I just
> figured I have something not coded correctly in my hook or the perl scipt it
> calls.
> After numerous tests, I have discovered a couple of things. It is looking
> like th pre-commit hook is not executing correctly. The reason I say that is
> because I coded a pre-commit hook with only an exit 0 line. This hook causes
> the commit to fail. I am using the tortoise GUI. Anybody out there got any
> ideas.
>
> All ideas greatly appreciated.
>
>


Make sure that the pre-commit hook as execute permissions.

Plus, please read: http://subversion.tigris.org/faq.html#hook-debugging

regards,
-Hari