[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: Matthew Galati <magala_at_wnt.sas.com>
Date: 2005-02-22 14:45:17 CET

Hi - just updating this thread. I finally got it working and it seems to
have been a dumb mistake. I am not sure exactly how this works in Linux
(Fedora Core 2, bash). But, instead of saving post-commit.tmpl as
post-commit and editing that. I had created a new file (in emacs) called
post-commit, put my test script in there (had the correct !#...) - I
even made it executable with chmod and set all the right permissions.
Upon close examination in emacs, my file was in "Fundamental" mode,
versus post-commit.tmpl, which was "Shell script" mode.

If I simply save post-commit.tmpl to post-commit and edit that directly,
everything works fine.

Thanks to everyone that tried to help!

If anyone knows why that happened, let me know.


> Hi,
> 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?
> My clients commit through http protocol. All other aspects of subversion
> seem to work fine.
> Thanks,
> Matt

Matthew Galati -- Optimization Developer
SAS Institute -- Analytical Solutions / Operations R & D
Office R5327 O: 919-531-0332 F: 919-677-4444
URL: http://sagan.ie.lehigh.edu/mgalati/ 
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 22 14:47:58 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.