Efox Efox - 10 months ago 78
Git Question

Using subgit to migrate non-standard layout subversion repository with no branches, tags and trunk

I have been using subgit to convert my subversion repository to git. Unfortunately, I have a sub-project in one of my branches which is not in standard layout. The non-standard sub-project is not included in the conversion.

The content of the sub-project is


Is there a way to specify it in the mapping in subgit.conf? Below is the mapping in subgit.conf.


[git "my-subproject"]
translationRoot = my-subprojcet
repository = /var/git/my-subproject.git

trunk = trunk:refs/heads/master
branches = branches/*:refs/heads/*
shelves = shelves/*:refs/shelves/*
tags = tags/*:refs/tags/*

Answer Source

As found in subgit project mapping the configuration should be

[git "my-subproject"]
repository = /var/git/my-subproject.git

translationRoot = /

trunk = /my-subproject:refs/heads/master
branches = branches/project/*:refs/heads/*
shelves = shelves/project/*:refs/shelves/*
tags = tags/project/*:refs/tags/*

I hope this would be useful.