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

Re: help with hook scripts failing, not sure why.

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-08 18:50:00 CEST

On May 8, 2007, at 10:36, aaron smith wrote:

> I'm just getting into hook scripts with SVN. Our repository is over
> http with Apache. What i'm trying to do is export the repository after
> a commit to the root of a virtual host on the same machine.
>
> This is my hook script:::
> ----post-commit
> #!/bin/sh
> REPOS="$1"
> REV="$2"
> PATH=/sbin:/bin:/usr/bin:/usr/bin
> export PATH
> sudo svn export http://***/svn/repos/htdocs /var/www/vhosts/copytest/
>>> /tmp/test 2>&1
> -----
>
> When I do a commit to the repository it successfully does the commit
> but then it tells me the post-commit hook failed with output: [blank]
>
> I've been double checking permissions, file locations, etc.. can't
> seem to find why it would be failing.

If you remove "2>&1" from the end of the svn command above, then you
should see the error output that's causing the problem...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 8 18:50:29 2007

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.