SVN提交时报错:Commit blocked by pre-commit hook (exit code 1) with no output.
可能的原因:
提交代码的SVN命令中,Comment长度短了。参考:http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-minlogmsgsize.html
解决方法:
在提交的命令行的Comment中多加些字符,再提交。比如,将:
- svn commit -m "XXX"
改成
- svn commit -m "Add some code for Case 1"
然后再提交。就成功了。
可能原因:
排查既不是权限问题,也不是备注信息没超过16个字符。
关键是这个信息“ //opt/csvn/bin/svnlook: No such file or directory”
解决方法:
1、进入服务器当前版本仓库下的hooks目录(一般是SVN安装目录/data/repositories/库名称/hooks)。
2、编辑文件pre-commit.tmpl,将“SVNLOOK=//opt/CollabNet_Subversion/bin/svnlook”改为svnlook所在的正确的路径。
3、编辑文件pre-commit,将“SVNLOOK=//opt/CollabNet_Subversion/bin/svnlook”改为svnlook所在的正确的路径。
可能原因:
被锁
解决方法:
尝试Clean Up,再Update,然后在Commit。
可能原因:
开始时提交的注释为: commit -m "更改otherInfos类型为Map<String, String>"
提交时报错:svn: Commit blocked by pre-commit hook (exit code 255) with output:
SVN并无其他错误,分析可能是由于注释中包含了一些非法字符
解决方法:
把Map<String, String>去掉,注释改为 commit -m "更改UserActionLog属性otherInfos的类型",既可。
参考:
http://blog.csdn.net/yasi_xi/article/details/39450689(以上内容转自此篇文章)
http://blog.sina.com.cn/s/blog_537e69fb0101bzyr.html(以上内容转自此篇文章)
http://blog.csdn.net/zhouxingxingzxy/article/details/52607015(以上内容转自此篇文章)
SVN提交时报错:Commit blocked by pre-commit hook (exit code 1) with no output.的更多相关文章
- xcode 运行报错 Command /usr/bin/codesign failed with exit code 1
因为更换了证书,导致在运行时报错 Command /usr/bin/codesign failed with exit code 1,查看了网上各种方法,最后发现以下两个值没有同步更新
- SVN同步时报错:“Previous operation has not finished; run 'cleanup' if it was interrupted”
SVN同步时报错:“Previous operation has not finished; run 'cleanup' if it was interrupted” 这大概是SVN之前的操作没有完成 ...
- git提交时报错处理办法
git提交时报错:Updates were rejected because the tip of your current branch is behind: 有如下几种解决方法: 1.使用强制pu ...
- svn提交报错Previous operation has not finished; run 'cleanup' if it was interrupted
从SVN上拉下来Document文档(word和excel),在本地修改后,准备通过TortoiseSVN提交,发现报错. Error: Previous operation has not fini ...
- Eclipse下进行SVN提交时报“svn: 过期”错误的解决办法
http://www.thinksaas.cn/group/topic/105323/ ———————————————————————————————————————————————————————— ...
- git提交时报错 permission denied
git push 时报错:permission denied xxx 目前很多解决办法是生成公钥和秘钥,这种方法安全可靠,比较适用于一台电脑对应一个git账户,但是多个账户在同一台电脑上提交使用git ...
- svn提交报错,提示:locked,需要cleanup
版权声明:本文为博主原创文章,未经博主允许不得转载. 原文地址: https://www.cnblogs.com/poterliu/p/9285137.html 在使用SVN提交代码或更新代码时经常会 ...
- svn 提交报错post-commit hook failed (exit code 23) with output
svn 提交文件,hook同步更新报权限错误 排查后可能原因是被同步的服务器 selinux 已开启. 查看状态命令:/usr/sbin/sestatus -v #如果SELinux status参 ...
- svn提交报错:svn: Aborting commit:XXXXXremains in conflict
Svn服务器上的对应内容,在上次Update后已被别人修改了,而我也做了修改,造成冲突.先备份自己的修改,从SVN上取一份别人的修改覆盖自己的文件,然后合并自己的修改进去,最后Commit.可以先更新 ...
随机推荐
- 使用JS分页 <span> beta 1.0
<html> <head> <title>分页</title> <style> #titleDiv{ width:500px; backgr ...
- 解决Unicode编码(璘)
随着互联网发展,B/S越来越受欢迎 Code编码格式也越来载多, 在大千花花世界 中文在Web显示看似一样但实际编码并不样,导致从页面获取的资料录入到数据库中时 存取的就是Code编码 如:Unico ...
- hihocoder1365 图片排版
思路: 模拟,枚举,dp. 参考了https://github.com/buptlxb/hihoCoder/blob/master/solutions/1365/picture_arrange.cpp ...
- Slow HTTP Denial of Service Attack 漏洞解决办法
编辑 删除 问题名称: Slow HTTP Denial of Service Attack 问题URL http://10.238.*.*:58*** 风险等级: 高 问题类型: 服务器配置类 漏洞 ...
- Farseer.net轻量级开源框架 入门篇:添加数据详解
导航 目 录:Farseer.net轻量级开源框架 目录 上一篇:Farseer.net轻量级开源框架 入门篇: 分类逻辑层 下一篇:Farseer.net轻量级开源框架 入门篇: 修改数据详解 ...
- CherryPy 入门
CherryPy是一个Python的HTTP框架,可以用Python来处理HTTP请求然后返回结果. 1. 安装 可以去这个地址下载 CherryPy-3.1.2.win32.exe .或者去这个链接 ...
- Windows sever 2003 IIS6.0 搭建DVWA
DVWA 环境: Windows Sever 2003 IIS 6.0+MYSQL+PHP5.4+FASFCGI 详细教程: http://files.cnblogs.com/files/yyx001 ...
- 如何在Win8.1和Win2012上运用PowerShell快速生成、安装、导出自签名证书 (Self-Signed Certificate)
自签名证书用途很广,测试,开发,本地或者云端网站(比如Microsoft Azure Web Site)都会使用到.本文会介绍一种在Win8.1和Win2012 R2上使用PowerShell快速生成 ...
- CAD设置背景图片
把图片作为背景图片可见但是不能编辑操作. 主要用到函数说明: _DMxDrawX::DrawImageToBackground 绘光栅图到背景.详细说明如下: 参数 说明 BSTR sFileName ...
- Mybatis学习总结二
Mapper动态代理开发方式 实现原理: Mapper接口开发方法只需要程序员编写Mapper接口(相当于Dao接口),由Mybatis框架根据接口定义创建接口的动态代理对象. Mapper接口开发需 ...