Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

Re: How to use git-svnimport without trunk, tags and branches?

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:42:59

On 2007-03-11 17:57:13 +0100, Georg Lohrer wrote:
Karl Hasselström schrieb:
quoted
You could try something like this:

 trunk: svnrepos/projectA
 tags: svnrepos/dummytags
 branches: svnrepos/dummybranches
yes, that does the trick. I use:

$ cd ~/tmp/git-test
$ tar xvfj fooRepos.tar.bz2
$ mv fooRepos foorRepos.svnrepos
$ svn mkdir file:///home/georg/tmp/git-test/fooRepos.svnrepos/dummytags
$ svn mkdir file:///home/georg/tmp/git-test/foorRepos.svnrepos/dummybranches
$ mkdir fooRepos.git; cd fooRepos.git
$ git-svnimport -b dummybranches -t dummytags -T projectA file:///home/georg/tmp/git-test/fooRepos.svnrepos
Did you try importing without creating the dummy* directories? I think
it may work even if they don't exist.
Unfortunately there was a bunch of directories instead of a single
projectA-directory. Do I have to repeat the above mentioned sequence
for every directory (projectA, projectB, ...) or is there a simple
way of git-svnimport'ing into an existing git-repository?
You could try this:

  trunk: dummy
  tags: dummy
  branches: svnrepos

That should turn svnrepos/projectA into the branch projectA,
svnrepos/projectB into the branch projectB, and so on.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help