为什么 git svn 在尝试克隆时似乎挂起?
Why does git svn appear to hang when trying to clone?
我正在尝试在 Windows 10 上将一个 svn 存储库克隆到 git 中。为了让您了解存储库的大小,它包含 100 个修订版,当前(导出的)代码库是430 个文件中约 4MB。存储库没有 "standard" root/branch/tag 布局。
我的"anonymized"命令是:
git svn clone https://my_svn_url --prefix=svn/ --no-metadata C:/my_folder_path
克隆命令报告 "Initialized empty Git repository ...",我可以看到生成的文件夹,但除此之外,我看到一个 perl 进程正在运行 CPU,但没有任何反应。在放弃并终止进程之前,我已经让它 运行 了大约 15 分钟。
我的命令有问题吗?只是很慢吗? (我 运行 正在使用 2.4GHz i7 笔记本电脑,perl 进程大约为 18%)。是否无法处理非标准的存储库布局?
考虑到 Git for Windows 2.21 released a few hours ago does fix an obscure git svn hang (issue 1993),请确保先升级并查看问题是否仍然存在。
git svn clone
, git svn fetch
, and git svn rebase
all hang with perl.exe
using about 18% CPU.
Downgrade to 2.20.0 and it all works fine.
SVN repository is via https and requires username and password. 2.20.0 prompts to accept certificate (self signed). 2.20.1 doesn't prompt at all.
OP Zenilogix confirms 问题是服务器上使用的 SVN 版本。
I updated the server software (still on the same old server) to 3.6.5 (Dec 2017) and it now appears to be working.
我正在尝试在 Windows 10 上将一个 svn 存储库克隆到 git 中。为了让您了解存储库的大小,它包含 100 个修订版,当前(导出的)代码库是430 个文件中约 4MB。存储库没有 "standard" root/branch/tag 布局。
我的"anonymized"命令是:
git svn clone https://my_svn_url --prefix=svn/ --no-metadata C:/my_folder_path
克隆命令报告 "Initialized empty Git repository ...",我可以看到生成的文件夹,但除此之外,我看到一个 perl 进程正在运行 CPU,但没有任何反应。在放弃并终止进程之前,我已经让它 运行 了大约 15 分钟。
我的命令有问题吗?只是很慢吗? (我 运行 正在使用 2.4GHz i7 笔记本电脑,perl 进程大约为 18%)。是否无法处理非标准的存储库布局?
考虑到 Git for Windows 2.21 released a few hours ago does fix an obscure git svn hang (issue 1993),请确保先升级并查看问题是否仍然存在。
git svn clone
,git svn fetch
, andgit svn rebase
all hang withperl.exe
using about 18% CPU. Downgrade to 2.20.0 and it all works fine.SVN repository is via https and requires username and password. 2.20.0 prompts to accept certificate (self signed). 2.20.1 doesn't prompt at all.
OP Zenilogix confirms
I updated the server software (still on the same old server) to 3.6.5 (Dec 2017) and it now appears to be working.