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

implementing pre-commit-hook to prevent overwriting files under tags-dir

From: Marc Lustig <ml_at_marclustig.com>
Date: Thu, 24 Sep 2009 07:06:20 -0700 (PDT)


I found a script in the svn.collab.net repo that is supposed to prevent
overwriting content under the tags-dir.
Since this script is enabled, any commit fails with exit code 255, like:

>Some of selected resources were not committed.
>A repository hook failed
>svn: Commit failed (details follow):
>svn: √úbertragen wird durch Aktion pre-commit behindert (Exit-Code 255) ohne

The strange thing is, there is no single "exit 255" command in the script.

To debug this, I simply used the following lines in the script:

echo "starting script" >&2
exit 1

But still, the commit-operation fails WITHOUT the message "starting script"
and with exit-code 255 instead of exit-code 1.

The script has permissions 644 and is owned by root.
The installation is collabnet-rpm-package 1.5.2.

Any idea what is going wrong?

View this message in context: http://www.nabble.com/implementing-pre-commit-hook-to-prevent-overwriting-files-under-tags-dir-tp25570855p25570855.html
Sent from the Subversion Users mailing list archive at Nabble.com.
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-24 16:07:30 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.