【发布时间】:2015-08-03 18:14:06
【问题描述】:
我知道这个问题在这里被问了很多次,但我的问题是我尝试了这里列出的所有解决方案,但在执行预提交挂钩时仍然遇到问题。
我的 svn 存储库托管在此路径 /svn/development/ 中的 linux 盒子中 我修改了 /svn/development/hooks/pre-commit.sh 文件如下
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
尝试从托管我的 svn 存储库的盒子本地提交,也尝试使用 Tortoise svn 远程提交。我能够提交空消息。
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.
有人能告诉我我缺少什么吗?
【问题讨论】:
标签: svn pre-commit-hook