限制Message提交的格式必须为以下格式
[Version]
[Description]
[TPA]
[Doors]文章来源:https://www.toymoban.com/news/detail-621515.html
REPOS="$1"
TXN="$2"
# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
MSG=`$SVNLOOK log -t "$TXN" "$REPOS"`
if [[ $MSG =~ ^\[Version\].*\[Description\].*\[TPA\].*\[Doors\].* ]]; then
exit 0
else
echo -e "Message format error, please standardize the message format!" 1>&2
exit 1
fi
# Check that the author of this commit has the rights to perform
# the commit on the files and directories being modified.
# All checks passed, so allow the commit.
exit 0
pre-commit 这个文件需要加读写权限!!!否则不生效文章来源地址https://www.toymoban.com/news/detail-621515.html
到了这里,关于SVN限制Message提交的格式的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!