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

Re: Pre commit hook being ignored

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 23 Sep 2009 14:51:48 -0400

Try a test. Have the hook report the length of the message, and the message
itself to STDERR. Put angle brackets around the commit message, so you can
make sure there are no spaces at the beginning or end of the message. Then
change the hook to purposefully reject the commit. This way, you'll see the
length of the message and the message itself.

Also make sure that the hook has execute permission.

On Wed, Sep 23, 2009 at 12:36 PM, Purple Streak <
mrpurplestreak_at_googlemail.com> wrote:

> Hi,
> Just come across a wierd one. We have a pre-commit hook that checks
> the length of the log message and fails the commit if it's length is
> less than 5 characters. This works when I'm going from the command
> line or Tortoise, i.e. checkin with comment of "oops" gets failed.
> However I also have AnkhSVN in visual studio and this managed to
> commit ok.
>
> This was in the same working copy and I tried a couple more just to
> confirm. This was running against the svn:// protocol, so it would
> seem svnserve doesn't run the hook and fail the commit when the
> request comes from AnkhSVN.
>
> How can that be?
>
>
> Purple
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2398977
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].
>

-- 
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2399034
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-23 21:00:00 CEST

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.