且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

试图让svn2git在Windows上工作

更新时间:2023-11-30 16:13:58

显然, ruby​​gems.rb 缺失。按照文档中的说明安装它:

https://rubygems.org/pages/download



然后,按照以下指示安装 svn2git

https://github.com/nirvdrum/svn2git



After那样,一切都会好的。

I'm migrating an SVN repository over to Git. The git-svn command doesn't handle the branches and tags properly but I stumbled across a tool called svn2git which seems to resolve this (https://github.com/nirvdrum/svn2git).

I've tried setting up this tool to work on Windows but I've not had much success.

I started off by copying the svn2git installation to C:\svn2git and downloading Ruby for Windows (http://rubyinstaller.org/) and saved it at C:\Ruby193.

Running svn2git came back with

/bin/env: ruby: No such file or directory

I then copied Ruby's bin and lib folders to svn2git's bin and lib folders respectively.

Running the svn2git then came back with

<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError) from <internal:gem_prelude>:1:in `<compiled>'

Does anyone know how to get this working on Windows environment? Thanks

Obviously, rubygems.rb is missing. Install it as documented here:
https://rubygems.org/pages/download

Then, install svn2git as instructed here:
https://github.com/nirvdrum/svn2git

After that, everything shall be fine.