From: Eric Wong <normalperson@yhbt.net>
To: Miklos Vajna <vmiklos@frugalware.org>
Cc: Peter Baumann <waste.manager@gmx.de>, git@vger.kernel.org
Subject: Re: git-svn branch naming question
Date: Sat, 8 Dec 2007 19:26:08 -0800 [thread overview]
Message-ID: <20071209032608.GB31033@soma> (raw)
In-Reply-To: <20071209023600.GP3199@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> wrote:
> 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
next prev parent reply other threads:[~2007-12-09 3:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 1:04 git-svn branch naming question Miklos Vajna
2007-12-08 10:59 ` Peter Baumann
2007-12-08 14:14 ` Miklos Vajna
2007-12-08 16:56 ` Peter Baumann
2007-12-08 23:52 ` Miklos Vajna
2007-12-09 2:05 ` Miklos Vajna
2007-12-09 2:13 ` Björn Steinbrink
2007-12-09 2:25 ` Miklos Vajna
2007-12-09 2:26 ` Eric Wong
2007-12-09 2:36 ` Miklos Vajna
2007-12-09 3:26 ` Eric Wong [this message]
2007-12-09 5:16 ` Harvey Harrison
2007-12-09 19:36 ` Miklos Vajna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071209032608.GB31033@soma \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=vmiklos@frugalware.org \
--cc=waste.manager@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).