Re: git svn problem
- From
Sam Vilain <sam@vilain.net>
- Date
- Feb 10, 2012, 21:21 UTC
- Message-ID
- <4F358A53.8010409@vilain.net>
- In-Reply-To
- <CAPqC6xRtZXwv+U6AKRUXDz=m-G4AjgWksbwqeMD_qzS8YC=DoQ@mail.gmail.com>
On 2/10/12 10:15 AM, Serhat Sevki Dincer wrote:
Show 8 quoted lines
> Hi, > > I am using git-svn (1.7.4.1-3 on ubuntu) to get a project. It has two > svn repositories, apparently disjoint. First half is at > http://svn.plone.org/svn/plone/plone.app.locales, and the continuation > at http://svn.plone.org/svn/collective/plone.app.locales > How can i get a nice linear git-svn repository? the second one is the > new location of the project. I am only interested in the trunks btw.
Import them separately to different git-svn remotes, and once they are in the same repository you can graft them together using .git/info/grafts (see man gitrepository-layout). Once it looks right (check using 'gitk' etc), make it permanent using git filter-branch. You'll also want to remove the .git/svn directory, and re–run 'git svn fetch' so that git svn's revision database is recomputed. Don't forget the -A option to 'git svn fetch'!
Good luck, Sam