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

Re: SVN pre-commit hook failed

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Wed, 19 Mar 2008 11:24:20 -0700

On Wed, Mar 19, 2008 at 9:58 AM, Prasad (普拉萨德) <prasad.online_at_gmail.com>
wrote:

> Whenever i try commit remotely my pre-commit hook failed.
> my subversion is 1.4.4-r1 its configured with scmbug 0.23-4
>
> loocal commits are working fine but remote commit having following erros

This is not an answer but I am wondering what the difference between local
and remote commits is. I had thought that if pre-commit hook exists, it will
be called no matter what kind of commit it is.

>
>
> svn checkout is done using svn+ssh command. but while checking into
> repository getting following error but without any output
>
> prasad_at_server ~/src $ svn ci -m "Bug:14223 test"
> Password:
> Sending prasad.test
> Transmitting file data .svn: Commit failed (details follow):
> svn: 'pre-commit' hook failed with error output:
>
> prasad_at_server ~/src $
>
> If I removed the pre-commit file from hooks directory its works fine form
> remotely too. I don't know whats wrong with pre-commit file
>
> please suggest.
>

As Andy pointed out earlier, without looking at the pre-commit hook, it will
be difficult to tell. There are many things that could go wrong in the hook
script. Some of the more common ones are not having execute permission for
the hook script, assuming pre defined environment for the session that
executes the script etc. Please see
http://subversion.tigris.org/faq.html#hook-debugging. In this case, I am
guessing that you don't have execute permission for the script.

Thanks,
-Hari
Received on 2008-03-19 19:24:43 CET

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.