git svn 同步失败



我正在关注这个线程将现有的 git 存储库推送到 SVN将 Git 存储库同步到 SVN。但是我被困在 git svn fetch

git svn fetch
RA layer request failed: REPORT of '/svnrepos/my_git/!svn/vcc/default': Could not read chunk size: Secure connection truncated (https://my.svn.net) at /usr/libexec/git-core/git-svn line 5061

任何人都知道如何解决这个问题...

[附加信息]:我在公司代理后面,但无需代理即可访问 svn 网址。无论如何,我已经尝试了设置和取消设置http-proxy-host和http-proxy-host,http-proxy-port,http-proxy-username,http-proxy-password,这些都不起作用。

[附加信息 2] 我可以同时使用"svn co"和"git svn clone"来签出 svn url

对于遇到同样问题的人,我的解决方案是在我执行 git svn 获取之前将 --no-minimum-url 传递给 git svn init

git svn init <svn.url> -s --no-minimize-url
git svn fetch

事实证明,由于 svn 服务器不是由我们管理的,svn root 中的某些信息是故意对我们隐藏的。因此,如果 git svn 客户端尝试从 svn 根读取该信息,它将失败。--no-minimize-url 将阻止 git svn 客户端进入那里。

相关内容

最新更新