SVN Post-Commit Hook失败(退出代码1)带输出:

时间:2014-11-04 09:06:20

标签: svn version-control visualsvn-server

我是 SVN 使用挂钩的新手。基本上我是设置SVN存储库和一切的新手。 基本上我在这里要做的就是将提交到存储库的任何内容复制到我现有的实时站点。

我正在使用VisualSVN。这是我的 post-commit 钩子代码或某些代码。 "%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命令,因为我刚刚使用谷歌找到它。

1 个答案:

答案 0 :(得分:1)

错误

  

无法建立连接,因为目标计算机主动拒绝它。

表示网址不正确。检查您是否在URL中指定了正确的端口和协议(https vs http)。

相关问题