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

git-svn strangeness with tags and Squirrelmail repo

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jun 20, 2007, 05:05 UTC
Message-ID
<46a038f90706192205y71a77f5al5ca199b3ac382d71@mail.gmail.com>

First -- kudos to Eric Wong and company: git-svn can deal with the odd errors and invalid chunks of XML or UTF-8 that SVN spits at me every once in a while. And it "just works" in 99% of the situation. Great stuff.

Now... on to my 1% where it doesn't "just work"... I am trying to get a working svn to git gateway for Squirrelmail, and getting in trouble with the tags setting...

  git --version
  git version 1.5.2.2.238.g7cbf2f2
For starters - it "just works" if I run
  git svn init  -T trunk -t tags -b branches \
   http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail
 git svn fetch

However, every tree (for tags, branches and trunk) is prefixed with "squirrelmail" and commits to the toplevel "plugins" directory get in the way. Also, I want the branches and tags to appear in more natural places, so after init, and before fetch, I change .git/config to say:

   [svn-remote "svn"]
        url = http://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail
        fetch = trunk/squirrelmail:refs/heads/svn/trunk
        branches = branches/*/squirrelmail:refs/heads/svn/*
        tags = tags/*/squirrelmail:refs/tags/svn/*

and when I do that -- trunk and branches do what I want, but tags aren't imported anymore. :-/

cheers,
martin
Next: Eric Wong
Message 1 of 4 in “git-svn strangeness with tags and Squirrelmail repo”
  1. Martin LanghoffJun 20, 2007
  2. Eric WongJun 20, 2007
  3. Martin LanghoffJun 20, 2007
  4. Peter BaumannJun 20, 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.