2014-11-04 159 views
2

我是新来使用挂钩SVN。基本上我是新来建立一个SVN存储库和一切。 基本上我在这里要做的是将任何提交到存储库的内容复制到我现有的活动站点。SVN后提交挂钩失败(退出代码1)与输出:

我正在使用VisualSVN。这是我的事后提交钩码或有点代码。 "%VISUALSVN_SERVER%bin\svn.exe" export mysvnurl D:\myfolder\websitefolder --quiet --non-interactive --force --username ***** --password *****

我每次提交文件都会出现此错误。

Error: post-commit hook failed (exit code 1) with output: 
Error: svn: E730061: Unable to connect to a repository at URL mysvnurl 
Error: svn: E730061: Error running context: No connection could be made because the target machine actively refused it. 

有关如何解决错误的任何想法?我不确定是否输入了write post-commit命令,因为我刚刚使用google找到它。

回答

1

错误

No connection could be made because the target machine actively refused it.

意味着该URL不正确。检查您是否在URL中指定了正确的端口和协议(https vs http)。

+0

嗨bahrep,感谢您的答复。 其实我试过https和http。我仍然得到同样的错误。 还有别的办法吗?我读了关于使用svnsync将文件镜像到某个文件夹。它的使用方式与我正在做的一样吗? – 2014-11-06 08:18:47

+0

@JohnPaulPo它不仅是关于协议;检查端口号。 – bahrep 2014-11-06 08:42:11

+0

嗨bahrep,感谢您的帮助。你有任何想法如何禁用VisualSVN的ssl检查?我总是得到一个错误。 post-commit hook failed(exit code 1)with output: svn:E230001:无法连接到URL'https:// ***/svn/SoulSeekDev'的存储库 svn:E230001:服务器SSL证书验证失败:发行人不信任 – 2014-11-07 10:06:21