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

Re: git-svn branch naming question

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 9, 2007, 02:26 UTC
Message-ID
<20071209022624.GA31033@soma>
In-Reply-To
<20071209020510.GM3199@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> wrote:
Show 38 quoted lines
> On Sun, Dec 09, 2007 at 12:52:48AM +0100, Miklos Vajna <vmiklos@frugalware.org> wrote:
> > >   [svn-remote "svn"]
> > >         url = https://url/to/your/svn/repo
> > >         fetch = trunk:refs/heads/trunk
> > >         branches = branches/*:refs/heads/*
> > >         tags = tags/*:refs/heads/tags/*
> > > 
> > > but I advice you to not do this. refs/remotes has a special meaning in git,
> > > e.g.  you can't commit directly to it (which makes sense, because it only
> > > tracks the state of the remote repo. On the other hand remote branches won't
> > > get cloned per default.)
> > 
> > yes, that's exactly what i want to do - in case the target is to convert
> > an svn repo to a git one (and i need git-svn since git-svnimport is to
> > be removed in 1.5.4)
> 
> hm, this seem to be not-working for me.
> 
> after "git svn init -s url" i edited the config:
> 
> $ cat .git/config
> [core]
>         repositoryformatversion = 0
>         filemode = true
>         bare = false
>         logallrefupdates = true
> [svn-remote "svn"]
>         url = svn+ssh://vmiklos@svn.gnome.org/svn/ooo-build
>         fetch = trunk:refs/master
>         branches = branches/*:refs/*
>         tags = tags/*:refs/tags/*
> 
> and wanted to fetch the revisions, but actually
> 
> $ git svn fetch
> 
> does not fetch any revisions. (yes, it does once i put back the
> "remotes" prefix). is this a bug? :)

I'm not sure if it's considered a "bug", but that's just the way it is at the moment. I can't remember why, but I did make git-svn force the presence of the "remotes/" prefix in all refs it writes to...

-- 
Eric Wong
Previous: Miklos VajnaNext: Miklos Vajna
Message 9 of 13 in “git-svn branch naming question”
  1. Miklos VajnaDec 8, 2007
  2. Peter BaumannDec 8, 2007
  3. Miklos VajnaDec 8, 2007
  4. Peter BaumannDec 8, 2007
  5. Miklos VajnaDec 8, 2007
  6. Miklos VajnaDec 9, 2007
  7. Björn SteinbrinkDec 9, 2007
  8. Miklos VajnaDec 9, 2007
  9. Eric WongDec 9, 2007
  10. Miklos VajnaDec 9, 2007
  11. Eric WongDec 9, 2007
  12. Harvey HarrisonDec 9, 2007
  13. Miklos VajnaDec 9, 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.