SVN限制Message提交的格式

限制Message提交的格式必须为以下格式

Version

Description

TPA

Doors

bash 复制代码
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 这个文件需要加读写权限!!!否则不生效

相关推荐
2601_961875242 小时前
花生十三公考课程|网课|视频
数据库·windows·git·svn·eclipse·github
2601_961875248 小时前
花生十三资料网盘|百度云|下载
数据库·windows·git·svn·eclipse·github
WSKH09296 天前
【操作记录】Mac 系统安装并使用 SVN
macos·svn
不想努力只想躺平的菜鸟ing7 天前
svn使用指南
svn
佛山个人技术开发7 天前
GitCode个人技术开发者总结完整使用指南
windows·git·svn·github·gitcode
深度学习04079 天前
SVN 独立服务端部署与客户端使用指南(CentOS/Rocky 9.5 + Windows)
windows·svn
hrw_embedded11 天前
svn架构下研发与产线异地办公程序共享问题?
svn·内网穿透http·研发与产线
snowjlz18 天前
鸿蒙版SVN来了!!!
git·svn·版本控制
2401_8769641318 天前
27考研余炳森概率论|喻老李良2027资料网课
windows·git·考研·svn·eclipse·github·概率论
Do_GH19 天前
【Linux】09.WSL+SVN部署操作说明
linux·运维·svn