Trying to get svn2git working on Windows

11,091

Solution 1

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.

Solution 2

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.

Share:
11,091

Related videos on Youtube

millie
Author by

millie

Keen developer

Updated on September 25, 2022

Comments

  • millie
    millie over 1 year

    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

  • Joe Skeen
    Joe Skeen over 9 years
    The rubygems.rb install link is broken.
  • Jason S
    Jason S about 9 years
    thanks for the mention! You should edit this since it now works over network to access the repo. I just used subgit + am much happier than using git svn clone (much faster) and although I have not tried svn2git I am suspicious in that it is a ruby-driven use of the git-svn tool, hence probably slow for large repos.
  • Warren  P
    Warren P almost 8 years
    Dude is gone, if facts are outdated, just edit as I have done here.
  • eckes
    eckes almost 8 years
    @JoeSkeen: thanks for the notification; updated links.