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, 03:26 UTC
Message-ID
<20071209032608.GB31033@soma>
In-Reply-To
<20071209023600.GP3199@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> wrote:
Show 13 quoted lines
> On Sat, Dec 08, 2007 at 06:26:24PM -0800, Eric Wong <normalperson@yhbt.net> wrote:
> > 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...
> 
> okay, i see. one problem: git-svnimport is to be removed and (afaik) the
> supposed way is to use git-svn instead. what is the supposed way to use
> git-svn to convert an svn repo to a git one if the method i tried is not
> working?
> 
> (if the branches are fetched to "remotes/" then they won't be visible
> when one clones the converted repo)

I'm pretty sure the reasoning behind "remotes/" being forced by git-svn was to prevent users from shooting themselves in the foot, since committing to those remote refs will break both git-svn fetch and dcommit...

Heck, the entire "remotes/" idea started because a git-svn user made the mistake of committing to the remote tracking branch directly:

  http://thread.gmane.org/gmane.comp.version-control.git/16869/focus=16875

I'll consider accepting a patch to lift that restriction (but still use the "remotes/" by default, of course).

Also, it's possible to fetch them after editing .git/config a little:
  Harvey Harrison's "[RFC] Mirroring svn" post has a good example
  on how to do it.
  http://mid.gmane.org/1196922153.10408.101.camel@brick

Perhaps git-clone could gain the ability to clone refs/remotes/ as-is without an extra step?

-- 
Eric Wong
Previous: Miklos VajnaNext: Harvey Harrison
Message 11 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.