[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

From: Dirk Schenkewitz <schenkewitz_at_docomolab-euro.com>
Date: 2005-11-22 11:39:25 CET

Annick Collet wrote:
> Dear all,
>
> I'm trying a pre-commit script to enforce a log message like "[1234]"
> ( 4 digits numbers in brackets")
> I encountered problem with my grep command which does not actually what
> I want
> ..
> SVNLOOK log -t "$TXN" "$REPOS" | grep "[0-9999]" > dev/null || exit 1
> ..
> Any idea ?

I'm not perfectly sure, but from all I (believe to) know: When a script
is running as a hook, there is *NO* $PATH set - so it does not know
where to find 'grep'. Simple solution: Try an absolute path like e.g.
/usr/bin/grep (or whatever the path to grep is on your system) instead.

HTH
   Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 22 11:41:20 2005

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.