I know this question is asked so many times here but my problem is i tried every solution that is listed out here and still having issues executing the pre-commit hook.
My svn repository is hosted in a linux box in this path /svn/development/ I modified the /svn/development/hooks/pre-commit.sh file as below
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
SVNLOOKOK=1
$SVNLOOK log -t "$TXN" "$REPOS" | \
grep "[a-zA-Z0-9]" > /dev/null || SVNLOOKOK=0
if [ $SVNLOOKOK -eq 0 ]; then
echo -e "Empty log messages are not allowed. Make sure you provide a valid JIRA number and a meaningful log message." 1>&2 || exit 1
fi
exit 0
Tried to commit locally from the box where my svn repository is hosted and also remotely using Tortoise svn. I am able to commit with null message.
1) Modified /etc/selinux/config -> SELINUX=disabled to enforcing and restarted apache
2) Ran chcon -t httpd_exec_t pre-commit
3) Verified all the permissions.
Could someone tell me what I am missing?