3

I am pretty sure I have tried everything, figured I would ask all the gurus on here.

Background: I had an SVN repository on an old linux box. I accessed this SVN repo with git-svn. The system's hard drive crashed and the SVN repo was lost.

Question:

Since I have an entire backup of the SVN repository on my local machine through me using GIT, I would like to figure out how to publish everything, including previous commits from my local machine to the new SVN server (that now is on a RAID 5 array).

Currently the projects still have the old SVN information in them, so I need to figure out how to get rid of that as well as migrating the GIT repo to the new SVN repo I set up.

I have contemplated setting up a remote GIT repo, but none of my co-programmers know/want to learn how to use GIT because currently they use the SVN plugin for eclipse and it is ultra easy, even though I am the one who saved everyone by using GIT.

Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
quaa
  • 43
  • 1
  • 5

3 Answers3

2

It looks like Git::SVNReplay might fit the bill.

jamessan
  • 41,569
  • 8
  • 85
  • 85
  • After i figured out how to install this, it seems to work! Thank you so much! have been looking for this for a while. – quaa Sep 24 '10 at 05:48
0

One approach might be to push your Git repository up to a private repo at GitHub, where you can use Git and everybody else can use Subversion to access the same repository.

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
  • Would be nice, but too cheap when I have a working linux box in front of me =( Have a few repos that we need to keep up with as well. – quaa Sep 24 '10 at 05:12
0

Maybe Pushing an existing git repository to SVN solves your problem.

Use

svn switch --relocate file:///tmp/repos file:///tmp/newlocation .

to connect existing checkouts to the new svn repository.

Community
  • 1
  • 1
zellus
  • 9,617
  • 5
  • 39
  • 56
  • I have tried the steps in that link, since the repo was already tied to an SVN repo it makes it different. I cannot make it past the "git svn fetch". – quaa Sep 24 '10 at 05:13