Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to get svn2git working on Windows

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

like image 993
millie Avatar asked May 23 '12 09:05

millie


2 Answers

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.

like image 65
eckes Avatar answered Oct 29 '22 01:10

eckes


I'd suggest you to try SubGit tool. It does translate Subversion tags as tags and works well on Windows (requires Java 5 or newer). SubGit is ready to use. You may get latest build at download page and read documentation on the web site.

Originally in 2012 early SubGit versions required local access to Subversion repository (over file system) but later on (by 2015) on network access to subversion was added.

Disclaimer: I'm SubGit developer.

like image 21
Alexander Kitaev Avatar answered Oct 29 '22 00:10

Alexander Kitaev