I have a Centos 7 virtual machine (VirtualBox guest) that is acting as my svn server, already configured svn -- mod_dav_svn and got everything working fine: can checkout and do commits. The problem is that when adding a pre-commit hook and then try to commit from a windows machine (VirtualBox host) TortoiseSVN fails with this error
Commit blocked by pre-commit hook (exit code 255) with no output.
from the httpd logs I got
[client xx.xx.xx.xxx:57] Could not MERGE resource "/svn/testrepo/!svn/txn/5-2f" into "/svn/testrepo/trunk". [500, #0]
all the permissions are set correctly, I even try 777 and it is not working unless I remove the hook.
This is the reference I followed for the set up: http://www.unixmen.com/install-subversion-centos-7/
I'm wondering if there's something missing in my 10-subversion.conf file...
I'm using the default pre-commit, which has been set already as executable and the owner is apache user. Another test I did was to delete all the code in the pre-commit script leaving only the "exit 0" instruction.
This is how my 10-subversion.conf file looks like:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule dontdothat_module modules/mod_dontdothat.so
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION