开发者

Error when trying to use svn2git on Windows

I am trying to import a svn repository into git on Windows 7. I have Ruby/Gems/svn2git installed, but when I run this command:

svn2git http://svn.server/path

I get the following error:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/svn2git-2.0.0/lib/svn2git/migration.rb:226:i
n `popen': No such file or directory - git svn init --no-metadata --trunk=trunk
--tags=tags --branches=branches http://svn.server/path (Errno::ENO
ENT)

I don't know what this error means. All files are in the correct place as far as I can tell, and copying the repository to 开发者_如何学Cmy local system doesn't work. Any help is appreciated. Thanks!

EDIT: My SVN repository has the default trunk/branch structure.


Svn2Git documentation states that depends on git-core (msysgit in windows) and git-svn, since the error is related to the "git svn" command, i guess you'll have to install it and make it available in your PATH.

Check this other StackOverflow question on how to install both git-core and git-svn.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜