[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: post-commit hook

From: Graham Leggett <minfrin_at_sharp.fm>
Date: 2005-02-22 20:53:25 CET

Matthew Galati wrote:

> I can get my post-commit hook to work fine command line. But, when
> actually committing a file, it does not seem to execute the hook. I
> added a simple 'echo "blah" >> /tmp/testfile' to check this. It does not
> seem to to execute the script. How can I go about checking some log to
> tell if it even tried to execute my hook? Is there some way to trace
> what subversion is doing? is their a verbose mode of some sort?

Check that your hook is called "post-commit" and not "post-commit.tmpl".
Also check that the hook is executable, and if the hook is a script,
that the bang path to #!/bin/sh (or whatever) is correct.

(It also took a bit of trial and error for me, check the basics with the
script before trying anything else)



Received on Tue Feb 22 20:56:46 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.