[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 completely fails

From: Srilakshmanan, Lakshman <lakshman.srilakshmanan_at_police.vic.gov.au>
Date: Fri, 2 May 2008 12:16:02 +1000

Hi Anthony,

Couple of tests you can perform to narrow the problem.

1) place a "exit 0" at the top of your hook file.
2) keep moving the "exit 0" down the file till you can reproduce the
error.

I suspect your script is failing with a syntax error, which returns a
non-zero to subversion server.

Thanks
Lakshman
-----Original Message-----
From: Anthony Lieuallen [mailto:arantius_at_gmail.com]
Sent: Friday, 2 May 2008 11:32 AM
To: users_at_subversion.tigris.org
Subject: post-commit hook completely fails

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 #!/bin/bash /bin/true $ chmod 777 post-commit

And I set it up via apache:

<VirtualHost 65.111.171.224:80>
         ServerName svn2
         DocumentRoot /tmp
         ErrorLog /tmp/error_log
         CustomLog /tmp/access combined

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

         <Location />
                 DAV svn
                 SVNPath /tmp/svn
         </Location>
</VirtualHost>

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

================================================================================================
EMAIL DISCLAIMER

This email and any attachments are confidential. They may also be subject to copyright.

If you are not an intended recipient of this email please immediately contact us by replying
to this email and then delete this email.

You must not read, use, copy, retain, forward or disclose this email or any attachment.

We do not accept any liability arising from or in connection with unauthorised use or disclosure
of the information contained in this email or any attachment.

We make reasonable efforts to protect against computer viruses but we do not accept liability
for any liability, loss or damage caused by any computer virus contained in this email.
================================================================================================

---------------------------------------------------------------------
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 04:16:57 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.