git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn clone: file outside trunk
@ 2010-10-14 10:19 Mathieu Malaterre
  0 siblings, 0 replies; only message in thread
From: Mathieu Malaterre @ 2010-10-14 10:19 UTC (permalink / raw)
  To: git

Hi,

  I am trying to use git-svn to import an old svn project. I am not
sure I understand the documentation. For instance I am trying to
import a svn project where a portion of the history was directly at
the root level of the svn server. Eg:

  svnadmin create test
  mkdir out && cd out
  svn co file:///tmp/test
  echo "bla" > bla.c
  svn add bla.c
  svn ci -m"First commit"
  mkdir trunk
  svn add trunk
  svn mv bla.c trunk
  svn ci -m"Second Commit"

Now if I try to import it using git-svn:

$ git svn --no-metadata --stdlayout clone  file:///tmp/test
Initialized empty Git repository in /tmp/git/test/.git/
	A	bla.c
r2 = d40bd2cdcc4208f54b4b092dca0a6b3f2b010fd0 (refs/remotes/trunk)
Checked out HEAD:
  file:///tmp/test/trunk r2

Clearly rev 1 was lost. Is there a way to preserve history before the
re-root operation ?

Thanks a bunch !
-- 
Mathieu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-14 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 10:19 git-svn clone: file outside trunk Mathieu Malaterre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).