Ruby 在Windows上使用svn2git从Subversion迁移到Git
我正在使用ruby安装程序从svn迁移到gitRuby 在Windows上使用svn2git从Subversion迁移到Git,ruby,git,svn,Ruby,Git,Svn,我正在使用ruby安装程序从svn迁移到git C:\Ruby22-x64\bin>svn2git http://[Domain Name]/svn/trunk/Projname 1 [main] perl 2296 cygwin_exception::open_stackdumpfile: Dumping stack tra ce to perl.exe.stackdump 1 [main] perl 2296 cygwin_exception:
C:\Ruby22-x64\bin>svn2git http://[Domain Name]/svn/trunk/Projname
1 [main] perl 2296 cygwin_exception::open_stackdumpfile: Dumping stack tra
ce to perl.exe.stackdump
1 [main] perl 2296 cygwin_exception::open_stackdumpfile: Dumping stack tra
ce to perl.exe.stackdump
[svn-remote "svn"] unknown
command failed:
git svn fetch
C:\Ruby22-x64\bin>
任何人都可以帮我解决这个问题。我不知道为什么
git svn init
(这个脚本应该调用)没有这样做,但是你可以自己做;将其放入.git/config
:
[svn-remote "svn"]
fetch = trunk:refs/remotes/svn/master
url = http://[Domain Name]/svn/trunk/Projname
您正在运行的
svn2git
是Cygwin Perl,而不是Ruby。如果您在C:\Ruby22-x64\bin
中有一个svn2git
Ruby脚本,请尝试使用\svn2git
@Kenney,它再次给出相同的错误有许多svn2git
脚本-您使用哪一个脚本,它安装在哪里?此外,您可能应该运行cygwin的setup.exe
来更新所有软件包并重新启动;Perl不应该像那样崩溃。@Kenney我已经遵循了这个站点的步骤Ok-试试svn2git.bat
,它应该在C:\Ruby22-x64\bin
中。我很确定这是一个%PATH%
问题。