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

Re: Strange pre-commit-hook behaviour

From: Boris Stumm <stumm_at_informatik.uni-kl.de>
Date: 2006-05-04 09:35:02 CEST

Am Mittwoch, 3. Mai 2006 18:31 schrieben Sie:
> Boris Stumm wrote:
> > 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
> I have had problems with a similar setup:
> 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.

Indeed, a restart seems to helps. I'll see how long it lasts. Thanks
for the help.

Boris Stumm

Dipl. Inf. Boris Stumm, Technische Universität Kaiserslautern
Und für alle, die mir Emails schreiben wollen:

  • application/pgp-signature attachment: stored
Received on Thu May 4 09:36:12 2006

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.