Questions tagged [svn2git]

There are multiple utilities called svn2git that do the same task, transforming an SVN repository into one or multiple Git repositories. This tag can be used for any of them.

The KDE svn2git utility is probably the most sophisticated, most flexible and fastest tool amongst the ones called svn2git.

It is fed with a set of rules that define how the SVN content should be transformed into one or even multiple Git repositories or combine different SVN repositories in one SVN location into one Git repository.

It is often used in conjunction with svneverever to easily analyze the history of a repository and its committers to aid in setting up a rules file if the history of the repository was not straightforward.


Another svn2git utility available is the one of nirvdrum which uses git-svn for importing the SVN repository and then does some post-processing which is in total extremely time consuming and produces sometimes a bit of a borked history or missies the history from some point on.

132 questions
1
vote
0 answers

svn2git combine to repos together

I've a very strange problem with svn2git converter. I have 2 svn repos (both svn 1.7 and developed in windows). I've created a python3 script to automatically sync the repos and push it to our gitlab server every day(the converter runs on a virtual…
Michael Aigner
  • 4,820
  • 4
  • 21
  • 33
1
vote
1 answer

svn2git stop processing with error message "command failed"

While using svn2git to transfer an svn project to git project, I encountered following problem. command failed: git checkout -b "1.7.8" "remotes/svn/1.7.8"
James
  • 1,001
  • 2
  • 15
  • 23
1
vote
1 answer

Change multiple authors in a large Git repo

I have a very large Git repo (almost 20K commits, 3GB+, 10+ authors) that I am moving from Subversion into Github. I already moved the repo using nirvdrum's svn2git (not the svn2git on gitorious) however I did not have an authors file set up to map…
Nate
  • 12,963
  • 4
  • 59
  • 80
1
vote
1 answer

Running svn2git in Jenkins

I'm trying to run svn2git in a Jenkins job to regularly sync up a Git repository with its SVN directory on a local server. The job fails and is outputting the following message C:\GitDirectory>svn2git --rebase command failed: 2>&1 git svn…
1
vote
1 answer

Svn2Git - Push Large GIT Repo To Remote

I'm currently trying to move our large Subversion repository, around 25GB including history, into GIT and I seem to have hit two issues. One of which I think I've resolved, but I'll cover both for completeness in case I screwed up the first…
1
vote
3 answers

git cloning into a subdirectory

I did an svn2git migration and need to place that newly converted local git into a subdirectory of a bitbucket repo. So I have svn2git/ and want it to be placed in my developer folder in bitbucket stuff/svn2git How could I do this?
1
vote
1 answer

How to fix branches of partial directory structure in SVN to Git migration

I'm trying to convert an SVN repository containing a Java EE application into a Git repository. The original repository contains a folder for each part of the Java EE project which has been maintained as separate projects history-wise. For two of…
Darknight
  • 43
  • 6
0
votes
0 answers

"Ignore everything else" classic end match doesn't work?

I'm trying to test and migrate only a few revisions from a specific file from a 300K revisions svn repo. My very basic rules file looks like create repository test-onefile end repository match /basedir/src/libraries/lib1/tests/(test.py) …
someone
  • 1
  • 1
0
votes
2 answers

svn2git migration - tags not being copied

I've used svn2git (running on Debian) to try migrating an SVN repository to Git and then pushed to GitHub: svn2git https://localhost/svn/test-repository/space-invaders --username user git remote add origin…
Jakg
  • 922
  • 12
  • 39
0
votes
0 answers

KDE svn2git aborts with "Error: Writing process fatal: Root cannot be a non-directory"

As mentioned in the Title, that's the error I am getting, and that's the only thing I receive. I do not even understand what the error means to even begin with the troubleshooting and I could not find anything of relevance anywhere with Google, SO,…
saquib
  • 11
  • 1
0
votes
0 answers

svn2git - migrate trunk code to main branch instead of master in git

Using svn2git to migrate from SVN to git. While migrating, trunk code is migrated to 'master' branch in git. Instead I need to migrate trunk code to 'main' branch in git. Is that possible to customize default branch with svn2git?
Rajeswari
  • 71
  • 2
  • 11
0
votes
1 answer

GIT LFS migration using BFG increase total repository size by 4x

We are migrating a 5GB repository from SVN to GIT SVN to GIT migration svn2git http://xxx/svn/yy --trunk trunk --nobranches --notags --username user --metadata --authors /xx/yyy/authors.txt LFS migration java -jar ../bfg-1.14.0.jar…
0
votes
1 answer

KDE SVN2GIT "WARN: Branch ... in repository ... doesn't exist at revision ... -- did you resume from the wrong revision?" Can't continue

I'm trying to migrate an 11GB SVN repo with over than 24k revisions inside to a single GIT repository. I did a single file dump of the SVN using svnrdump command and load it into my local SVN server, placed on my MacBook machine. I downloaded the…
Gilmor
  • 439
  • 1
  • 3
  • 11
0
votes
1 answer

Migrating from SVN to GIT Requested Authentication type(s) are not supported

I'm migrating our organizations svn repo to a gitlab repository. I've looked around at lots of different sources on stack overflow which I tried to link but I got a warning that my question appears to be spam. Here are a couple links I tried:…
0
votes
0 answers

Getting merge points in svn for svn to git conversion

I'm currently working on converting SVN repos to git using svn2git. One of the problems I'm running into is that once converted the points at which we merged in svn do not show up in git. Instead we get separated branches and tags with no…
DarkGuardsman
  • 126
  • 4
  • 15
1 2 3
8 9