{"thread":{"id":"9541","subject":"git-svn fetch updating master","startedAt":"2007-08-15T18:12:28Z","lastAt":"2007-08-16T09:03:28Z","messageCount":4,"participants":["Mike Hommey","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"50802","messageId":"20070815181228.GA6363@glandium.org","threadId":"9541","inReplyTo":null,"subject":"git-svn fetch updating master","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-15T18:12:28Z","receivedAt":"2007-08-15T18:12:28Z","isPatch":false,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"Hi,\n\nI was wondering why the master branch was hardcoded to be updated in\npost_fetch_checkout() in git-svn. Why not allow to use another branch ?\n\nMike\n"},{"id":"50856","messageId":"20070816080349.GA16849@muzzle","threadId":"9541","inReplyTo":"20070815181228.GA6363@glandium.org","subject":"Re: git-svn fetch updating master","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-08-16T08:03:49Z","receivedAt":"2007-08-16T08:03:49Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Mike Hommey <mh@glandium.org> wrote:\n> Hi,\n> \n> I was wondering why the master branch was hardcoded to be updated in\n> post_fetch_checkout() in git-svn. Why not allow to use another branch ?\n\nIt shouldn't update master if it the branch already exists and is a\nvalid ref.\n\nThe default for git-clone is to create \"master\", too, so I wanted\ngit-svn clone behavior to be the same.\n\n-- \nEric Wong\n"},{"id":"50862","messageId":"20070816082706.GA29521@glandium.org","threadId":"9541","inReplyTo":"20070816080349.GA16849@muzzle","subject":"Re: git-svn fetch updating master","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-16T08:27:06Z","receivedAt":"2007-08-16T08:27:06Z","isPatch":false,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"On Thu, Aug 16, 2007 at 01:03:49AM -0700, Eric Wong <normalperson@yhbt.net> wrote:\n> Mike Hommey <mh@glandium.org> wrote:\n> > Hi,\n> > \n> > I was wondering why the master branch was hardcoded to be updated in\n> > post_fetch_checkout() in git-svn. Why not allow to use another branch ?\n> \n> It shouldn't update master if it the branch already exists and is a\n> valid ref.\n> \n> The default for git-clone is to create \"master\", too, so I wanted\n> git-svn clone behavior to be the same.\n\ngit-svn fetch is not only invoqued at cloning time...\n\nMy problem is that I (purposely) removed the master branch, so git-svn fetch\nis creating it again every time I run to update the svn branch...\n\nMike\n"},{"id":"50866","messageId":"20070816090327.GC16849@muzzle","threadId":"9541","inReplyTo":"20070816082706.GA29521@glandium.org","subject":"Re: git-svn fetch updating master","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-08-16T09:03:28Z","receivedAt":"2007-08-16T09:03:28Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Mike Hommey <mh@glandium.org> wrote:\n> On Thu, Aug 16, 2007 at 01:03:49AM -0700, Eric Wong <normalperson@yhbt.net> wrote:\n> > Mike Hommey <mh@glandium.org> wrote:\n> > > Hi,\n> > > \n> > > I was wondering why the master branch was hardcoded to be updated in\n> > > post_fetch_checkout() in git-svn. Why not allow to use another branch ?\n> > \n> > It shouldn't update master if it the branch already exists and is a\n> > valid ref.\n> > \n> > The default for git-clone is to create \"master\", too, so I wanted\n> > git-svn clone behavior to be the same.\n> \n> git-svn fetch is not only invoqued at cloning time...\n> \n> My problem is that I (purposely) removed the master branch, so git-svn fetch\n> is creating it again every time I run to update the svn branch...\n\nAh.  The old usage was: git-svn init && git-svn fetch; so it'll create\na master branch each time.   You can use --no-checkout with fetch to\navoid this behavior.\n\n-- \nEric Wong\n"}]}