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

RE: hook script error messages

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2004-06-03 15:44:00 CEST

Neil wrote:

> Is there a way to set the error message that comes back to the client
> when a (pre-commit) hook script fails?

Yes, inside the script do something like:

--- SNIP ---
if [ -z "$LOGMSG" ];
then
  echo -e "\nEmpty log message not allowed. Commit aborted!" 1>&2
  exit 1
fi
--- SNIP ---

Cheers
-Lübbe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 3 17:05:34 2004

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.