git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-svn clone: file outside trunk

From
Mathieu Malaterre <mathieu.malaterre@gmail.com>
Date
Oct 14, 2010, 10:19 UTC
Message-ID
<AANLkTimeGZp_SS2oKy3=h48CBMFHeB3NOPvWKsd8NOvi@mail.gmail.com>
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
Message 1 of 1 in “git-svn clone: file outside trunk”
  1. Mathieu MalaterreOct 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.