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

Re: git-svn fetch updating master

From
EWEric Wong <normalperson@yhbt.net>
Date
Aug 16, 2007, 09:03 UTC
Message-ID
<20070816090327.GC16849@muzzle>
In-Reply-To
<20070816082706.GA29521@glandium.org>
Mike Hommey <mh@glandium.org> wrote:
Show 17 quoted lines
> On Thu, Aug 16, 2007 at 01:03:49AM -0700, Eric Wong <normalperson@yhbt.net> wrote:
> > Mike Hommey <mh@glandium.org> wrote:
> > > Hi,
> > > 
> > > I was wondering why the master branch was hardcoded to be updated in
> > > post_fetch_checkout() in git-svn. Why not allow to use another branch ?
> > 
> > It shouldn't update master if it the branch already exists and is a
> > valid ref.
> > 
> > The default for git-clone is to create "master", too, so I wanted
> > git-svn clone behavior to be the same.
> 
> git-svn fetch is not only invoqued at cloning time...
> 
> My problem is that I (purposely) removed the master branch, so git-svn fetch
> is creating it again every time I run to update the svn branch...

Ah. The old usage was: git-svn init && git-svn fetch; so it'll create a master branch each time. You can use --no-checkout with fetch to avoid this behavior.

-- 
Eric Wong
Previous: Mike Hommey
Message 4 of 4 in “git-svn fetch updating master”
  1. Mike HommeyAug 15, 2007
  2. Eric WongAug 16, 2007
  3. Mike HommeyAug 16, 2007
  4. Eric WongAug 16, 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.