You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Joaquín Ayuso <ja...@obralia.com> on 2004/07/09 12:12:34 UTC
Hooks problems
Well,
Hope everybody don't get mad on me but I still don't get my
post-commit hook to work:
------------------------
#!/bin/sh
EXEC_PATH="`dirname $0`"
REPOS=${1}
REV=${2}
echo "${REPOS}" > /export/home/a_b2bep/svn/hooks/hola.txt
REV="`svn export file:///export/home/a_b2bep/svn /export/home/a_b2bep/svn/hooks/pruebas`"
echo "${REV}" > /export/home/a_b2bep/svn/hooks/fin.txt
------------------------
it executes both "echo" lines, but not the "svn" one :-( sure is just
a silly thing. Permissions over the directories are correctly assigned
to the Apache user and also the execution of the script.
I've tryed everithing, but found no solutions.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Hooks problems
Posted by Ben Collins-Sussman <su...@collab.net>.
On Fri, 2004-07-09 at 07:12, Joaquín Ayuso wrote:
> I've tryed everithing, but found no solutions.
Usually $PATH isn't defined when your hook script is executed. Try
using an absolute path to 'svn'.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org