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

Simple pre-commit hook didn't work

From: Fernando Garcia <fernandosetegarcia_at_uol.com.br>
Date: 2006-07-06 16:52:34 CEST


I can't get working a simple hook scripts.
I've chechek paths, docs, list, etc and it didn't work yet.
Since I'm a new user, what am I mistaking ?

I used the pre-commit example that comes with subversion and It doesn't

========begin pre-commit=============
$SVNLOOK log -t "$TXN" "$REPOS" | \
   grep "[a-zA-Z0-9]" > /dev/null || exit 1
# All checks passed, so allow the commit.
exit 0
========end pre-commit=============

svnuser@host1:/tmp/repo1$ svn commit -m "test"
Área de autenticação: <svn://localhost:3690> TESTE Repository
Senha para 'svnuser':
Enviando etc/named.conf
Transmitindo dados do arquivo .svn: Commit falhou (detalhes a seguir):
svn: Hook 'pre-commit' falhou com saída de erro:


I did another test, with just a simple line in the script:
/bin/echo "TEST"
exit 0

And it didn't work as well.

If I remove the script, I can commit successfully .

I'm using subversion over Ubuntu 6.06.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 6 17:01:00 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.