Boris Stumm wrote:
> Hi,
>
> I get some strange behaviour of the pre-commit hook.
> After trying out some things, I am finally there:
>
> ----------
> #!/bin/bash
> echo "foo" >> /tmp/test
> exit 1
> echo "bar" >> /tmp/test
> ----------
>
> results in only "foo" getting into the test file. That means,
> the hook gets executed and in theory, all is fine.
>
> But the commit is not rejected. Either I am making some really dumb
> mistake (which I hope in this case), or there is something really wrong
> here. Anyone has an idea?
>
> Some System Details:
> Suse 9.2, with self-compiled Subversion 1.3.0. Access over https with
> Apache.
I have had problems with a similar setup:
Suse 9.2
Apache 2.0.50 and 2.2
subversion 1.30 and 1.31
Pre-commit hooks showed a strange behaviour when mod_php was running at
the same time. It was the opposite - hooks failed although they got
executed and reached an "exit 0" statement. I couldn't figure out what
the real problem was. My guess was that something deep down inside the
system was borked.
For me restarting apache cured the problem for a while but as long as
php was running it returned sooner or later. With php disabled it's
running stable.
Regards,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 18:33:30 2006