24

Some weird error cropped up suddenly outta nowhere and is preventing me from checking in my code via TortoiseSVN. I'm using a free account on myversioncontrol.com

This is on a Windows Vista system. It was working fine till earlier in the day. Any clue how to get things back to normal?

The Tortoise window shows this

Command: Commit  
Modified: ...\edit.php  
Sending content: ...\edit.php  
Error: Commit failed (details follow):  
Error: Commit blocked by pre-commit hook (exit code 1) with output:  
Error: n/a (6).  
Finished!:   
4

12 回答 12

34

会不会是你没有输入提交信息?根据他们的twitter 提要:“添加了新功能。在不写日志消息的情况下阻止用户提交工作。在控制面板的资源部分中查找”。

于 2009-09-14T18:57:42.183 回答
6

Sounds like myversioncontrol.com have added a pre-commit hook, or have one that is now failing. If it's a free account, it might be you've exceeded some sort of monthly commit or bandwidth limit. Check their terms of service and/or contact them to see what's up.

UPDATE:
I've just checked their website, and it looks like the free account is only valid for 30 days, so you might've exceeded that. You may need to pony up the £3.50pcm or find somewhere else (Google Code is one suggestion, though there are others).

Simon Groenewolt makes a good point that you may have changed something in the control panel on their website that has turned on a pre-commit hook but where it's configured incorrectly.

于 2009-09-14T14:45:51.273 回答
5

A pre-commit hook is something that runs on the server, so this probably has nothing to do with your local setup. It could be that you changed something in a settings panel on myversioncontrol.com that is implemented using a pre-commit hook or the myversioncontrol people made an error and added a non-functioning hook.

于 2009-09-14T14:46:18.263 回答
5

对不起“回答我自己的问题”,但我想出了一个解决方法......如果我们删除评论/提交消息中的换行符,它似乎工作正常。

于 2010-01-30T08:33:45.620 回答
2

这发生在我身上,是因为没有评论(应该说“需要评论”而不是这个神秘的错误,对吧......)

于 2014-03-03T19:37:36.867 回答
1

最近我也遇到了同样的问题,在将我自己的WordPress插件提交到目录时,最后,我想通了,我工作了,

只需添加评论/提交消息。它会工作,

我使用了 TortiseSVN。

于 2014-02-11T10:59:19.983 回答
1

如果您遇到以下异常:

错误:提交失败(详细信息如下):
错误:提交被预提交挂钩(退出代码 1)阻止并输出:
错误:svnlook:路径'trunk/Development/ProjectName'不是文件

然后首先签入所有目录,然后签入所有文件。它会起作用的。

于 2016-04-13T06:49:32.717 回答
1

我收到错误消息,“svn:提交被预提交挂钩(退出代码 1)阻止,输出:失败并出现异常:在'读取初始通信数据包'时丢失与 MySQL 服务器的连接,系统错误:104。”

我在“ svn cleanup ”之后尝试了“svn commit” 。它工作正常!

于 2016-05-26T05:41:56.327 回答
0

您需要添加注释并与最后没有返回键的工件 ID 相关联。例如,[artf12345] - 您的评论。

于 2014-12-10T16:18:34.060 回答
0

WordPress 插件的解决方案:

我认为,get_option()返回FALSE(而不是EMPTY)。所以,检查你的插件。代替:

if (empty(get_option('smth')))

应该有:

if (!get_option('smth'))
于 2015-03-20T18:30:07.680 回答
0

就我而言,解决方案是从提交消息中删除“”(引号)。诡异的

于 2018-11-19T12:57:50.590 回答
0

我遇到了同样的问题,发现我忘记在提交消息前加上项目标识符。在我们的例子中,项目标识符必须后跟提交消息。所以在服务器端它没有找到前缀并提出了问题。

于 2016-07-05T10:05:32.027 回答