小编Gaj*_*nan的帖子

SVN预提交问题

我在网上发现了这个脚本,很少有人说他们正在为他们的存储库工作.该脚本允许预先提交检查以在检查时强制检查注释.问题是我将它添加到SVN中的hooks目录,现在所有提交(甚至是带注释的提交)都失败并显示此错误消息 "提交被预提交阻止(退出代码255)没有输出"

现在,我无法更改脚本或删除它,因为我得到相同的错误.有关如何还原此预提交脚本的任何建议?

#!/bin/bash # [1] REPOS-PATH (the path to this repository) # [2] TXN-NAME (the name of the txn about to be committed) REPOS="$1" REV="$2" @echo off :: :: Stops commits that have empty log messages. :: @echo off setlocal # rem Subversion sends through the path to the repository and transaction id set REPOS=%1 set TXN=%2 # rem check for an empty log message svnlook log %REPOS% -t %TXN% | findstr . > nul if %errorlevel% gtr 0 …
Run Code Online (Sandbox Code Playgroud)

svn pre-commit-hook

2
推荐指数
1
解决办法
7764
查看次数

标签 统计

pre-commit-hook ×1

svn ×1