[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: Christopher Ness <chris_at_nesser.org>
Date: 2005-02-24 20:15:41 CET

On Tue, 2005-22-02 at 21:53 +0200, Graham Leggett wrote:
> 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.

Something else to try is to use no environment when calling your script.
   $ env -i /path/to/script.sh

Check out the man page for env, but the -i flag does it for me.

Chris

-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
13:23:36 up 2:53, 5 users, load average: 0.16, 0.06, 0.01 
http://www.fsf.org/philosophy/no-word-attachments.html

Received on Thu Feb 24 20:18:21 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.