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
0
votes
2 answers

svn2git broken pipe error

I use svn2git but it fails always on the same line: My command: svn2git https://my-svn/proj/ --revision 1000:1001 --username xxx After one houre this command stoped running and it fails with: Broken pipe at /usr/lib64/perl5/vendor_perl/SVN/Ra.pm…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
0
votes
1 answer

Why are git repos so much smaller than SVN repos?

I have recently converted a huge SVN repository with 500k commits to several hundred git repos. The git repos are tiny in comparison to SVN. My manager thinks I haven't done it properly! I used svn2git and I think it worked perfectly. Just…
eeijlar
  • 1,232
  • 3
  • 20
  • 53
0
votes
1 answer

How to reconnect git branches to master after migration from svn?

I have migrated a large svn repository to git using svn2git. Now I have the following situation: The image is from my GitLab overview. As you can see, the branches created with svn are not connected to the red master branch. Is it possible to…
fasoh
  • 504
  • 4
  • 17
0
votes
1 answer

Error importing SVN report to git using svn2git

I get the following error when importing an SVN repository to git with svn2git: fatal: EOF in data (285 bytes remaining) Does anyone know what this error means?
eeijlar
  • 1,232
  • 3
  • 20
  • 53
0
votes
2 answers

Migrating specific folders from SVN to Git

I have an SVN repo which looks like this: Trunk: dir_1 dir_2 dir_3 dir_4 dir_5 dir_6 and I wish to Migrate only directories dir_1,dir_2 and dir_5 to a new Git repository including all the branches, and history of those directorys. so that the…
Omri Shneor
  • 965
  • 3
  • 18
  • 34
0
votes
1 answer

svn2git gives 'empty' directory

I tried svn2git to test a migration from svn to git. My command looks like: yes $PASS | svn2git https://my-svn.net/project/ --username $USERNAME I execute this command on an Ubuntu 14.04 where git is installed. I perform this in…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
0
votes
1 answer

Possible to merge branches that have been copied in the past but do not share the same root?

I have used svn2git to convert a large SVN repository of 10+ thousand commits to a Git repository. The Git repository works fine but was substantially larger in file size compared to the SVN repo. The cause for this seems to be that the SVN…
fasoh
  • 504
  • 4
  • 17
0
votes
1 answer

SVN to Git Migration. How to migrate a non standard SVN layout to Git

I am currently working on migrating an svn source controlled project into Git (BitBucket). I have followed the guide by Atlassian and nearly got to the end but encountered the following error when running the command git push -u origin --all: No…
RooN3y
  • 144
  • 1
  • 7
0
votes
2 answers

(ERROR) SVN --> Git migration Invalid Error

I am migrating a SVN project to Git. SVN project has following structure within repository. /trunk /branches /tags Because I want trunk to act as master branch, other branches as normal git branches and tags as git tags. I ran below command git…
virendrao
  • 1,763
  • 2
  • 22
  • 42
0
votes
2 answers

SVN2Git object reference error

My problem: Migration by an Ubunut VM in Windows; Windows had a blue screen of death; Windows restarted; the migration was damaged! ~/folder$ svn2git --rebase error: refs/remotes/svn/some_branch does not point to a valid object! fatal: git cat-file…
Idemax
  • 2,712
  • 6
  • 33
  • 66
0
votes
1 answer

How do I fix the issue that causes svn2git to fail with "no associated commit metadata"?

I am attempting to convert a remote Subversion repository to git on my local Windows machine. I installed ruby, svn2git, and then created a file called authors.txt for converting the associated committers. When I run the command svn2git…
Cody Brown
  • 375
  • 3
  • 17
0
votes
1 answer

Svn2git Migration: Repository/Project Complication

I have 3 svn repositories, each having 30~ projects in them. I want to convert these 3 svn repositories into Git repositories, with their respective projects kept inside. To give a clear idea, where is the representation of the structure I…
user4964330
0
votes
1 answer

Migrate SVN branches subfolders to Git

I'm using svn2git but I could use git svn as well. I had the scenario below in the SVN repository. trunk brances branchesA branchA1 branchA2 [...] branchesB branchB1 branchB2 [...] …
Idemax
  • 2,712
  • 6
  • 33
  • 66
0
votes
1 answer

Exclude branches with "." at end in git svn clone

I'm sorry, I've tried googling for this and a dozen or so regexes but I can't figure this out for the life of me. I'm using svn2git (wrapper around "git svn" but I've tried the raw commands directly as well to no avail) Years ago one of our scripts…
JoshStrange
  • 1,121
  • 1
  • 7
  • 22
0
votes
1 answer

The given key was not present in the dictionary - svn2tfs

This is the usermap.xml file used for usermapping in svn2tfs1.2
Siva
  • 25
  • 6
1 2 3
8 9