Thanks for the reply. If the user running the script just needs to have read and execute permission, then if the file has permissions like this:
-rwxr-xr-x 1 phd phd 37 Nov 18 14:39 pre-commit shouldn't it work no matter who the user running the script is? That is how the permissions have been set on the script all this time, but although the file:// protocol works, svn+ssh:// has always given the error message being discussed.