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

post-commit hook completely fails

From: Anthony Lieuallen <arantius_at_gmail.com>
Date: Thu, 01 May 2008 21:32:21 -0400

I've done all I can to diagnose this, and I can't figure it out. I've
set up hooks just fine on at least two other different systems, but here
nothing works.

So I create a test repository:

$ uname -a
Linux maniac 2.6.18-hardened #3 SMP Thu Mar 15 23:20:05 EDT 2007 x86_64
AMD Sempron(tm) Processor 2800+ AuthenticAMD GNU/Linux
$ grep User /etc/apache2/httpd.conf
User apache
$ cd /tmp
$ svnadmin create svn
$ sudo chown -R apache:apache svn
$ sudo chmod -R og+w svn
$ cd svn/hooks/
$ cat > post-commit
$ chmod 777 post-commit

And I set it up via apache:

         ServerName svn2
         DocumentRoot /tmp
         ErrorLog /tmp/error_log
         CustomLog /tmp/access combined

         <Directory /tmp>
                 Order allow,deny
                 Allow from all

         <Location />
                 DAV svn
                 SVNPath /tmp/svn

And then:

$ svn co http://svn2/ test
Checked out revision 0.
$ cd test/
$ touch x
$ svn add x
A x
$ svn ci -m -
Adding x
Transmitting file data .
Committed revision 1.

Warning: 'post-commit' hook failed with error output:

What else can I do? It's completely failing. If I completely remove
the post-commit file, it runs cleanly, but if *anything* is there, it
fails with no message.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-02 03:33:09 CEST

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.