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

Problem importing a subversion repository with git-svnimport

From
GCGuillaume Chazarain <guichaz@yahoo.fr>
Date
Sep 24, 2007, 16:49 UTC
Message-ID
<20070924184941.0d771306@cheypa.inria.fr>
Hello,

Here is a simple testcase illustrating a conversion problem between subversion and git. git-svn handles it fine, but git-svnimport keeps stuff in the checkout that shouldn't be there.

# git --version => git version 1.5.3.2.99.ge4b2 # svn --version | head -n 1 => svn, version 1.4.3 (r23084)

mkdir test-svn cd test-svn svnadmin create svn-repo svn co file://$PWD/svn-repo svn-check-out cd svn-check-out mkdir trunk branches tags svn add * svn ci -m 'SVN dirs' cd trunk mkdir -p a/b/c/d echo A > a/A echo B > a/b/B echo C > a/b/c/C echo D > a/b/c/d/D svn add a svn ci -m 'Add some data' svn mv a/b . svn rm b/c svn ci -m 'Some shuffling around' ls -R cd ../.. mkdir git-repo cd git-repo git-svnimport file://$PWD/../svn-repo ls -R

After the subversion manipulations, the svn checkout only contains the directories a/ b/ with their respective files A and B.

The checkout from git-svnimport contains these elements, but also the full c/ directory in b/.

Hope the testcase is clear enough ;-)
-- 
Guillaume
Message 1 of 1 in “Problem importing a subversion repository with git-svnimport”
  1. Guillaume ChazarainSep 24, 2007

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.