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

相关推荐
rain bye bye11 天前
SVN ? ! 的解决
svn
weixin_77143231111 天前
SVN 主分支合并之通过主分支合并子分支操作流程
svn
gihigo199819 天前
在CentOS上配置SVN至Web目录的自动同步
前端·svn·centos
程序员瓜叔1 个月前
基于SVN搭建企业内部知识库系统实践
svn·centos
huhy~1 个月前
基于Centos7.9搭建svn服务端
svn
高旭的旭1 个月前
Gitlab 配置自定义 clone 地址
svn·ssh·gitlab·code
白帽小野1 个月前
SVN和Git两种版本管理系统对比
git·svn·版本控制系统
闲人一小枚1 个月前
mac Monterey 安装svn(已解决)
macos·svn
Jsy0509062 个月前
dvcs-ripper ---CTFHub技能树: SVN泄露
svn·小白·网安·信息搜集
长沙红胖子Qt2 个月前
关于 svn无法查看下拉日志提示“要离线”和根目录看日志“no data” 的解决方法
svn·离线·nodata·日志查看失败