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

Re: Hook Script problem with no error output

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-11 05:17:39 CEST

On Oct 10, 2007, at 15:42, Kostas Rondinoulis wrote:

> I am very surprised why my hooks script don't work.
>
> I just made a pre-commit script with one line:
> /bin/echo "Script is running" >> /tmp/svn-test.log

Hopefully it includes another line before that, something like

#!/bin/bash

> I am not using any enviroment variables, so my script works
> perfectly in an empty enviroment and the permissions are set properly.
> I have tested with env - ./pre-commit and the script works
> perfectly. I have tried to run the server in the foreground, but it
> doesn't give me any output there either.
>
> When I try to commit, I get the following error:
>
> [rondin@webdev ~/html]$ svn ci -m "testing" .
> Deleting test5
> Adding test6
> subversion/libsvn_client/commit.c:865: (apr_err=165001)
> svn: Commit failed (details follow):
> subversion/libsvn_repos/hooks.c:135: (apr_err=165001)
> svn: 'pre-commit' hook failed with error output:
>
> I am running svnserve, version 1.4.4 (r25188).
>
> Is there any way to find out why the scripts are not working and
> why am I getting a blank error output?

Does the script have correct permissions, e.g. 755?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 11 05:20:20 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.