git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-svn fetch updating master
@ 2007-08-15 18:12 Mike Hommey
  2007-08-16  8:03 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Hommey @ 2007-08-15 18:12 UTC (permalink / raw)
  To: Git Mailing List

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 ?

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn fetch updating master
  2007-08-15 18:12 git-svn fetch updating master Mike Hommey
@ 2007-08-16  8:03 ` Eric Wong
  2007-08-16  8:27   ` Mike Hommey
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2007-08-16  8:03 UTC (permalink / raw)
  To: Mike Hommey; +Cc: Git Mailing List

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.

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn fetch updating master
  2007-08-16  8:03 ` Eric Wong
@ 2007-08-16  8:27   ` Mike Hommey
  2007-08-16  9:03     ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Hommey @ 2007-08-16  8:27 UTC (permalink / raw)
  To: Eric Wong; +Cc: Git Mailing List

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...

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-svn fetch updating master
  2007-08-16  8:27   ` Mike Hommey
@ 2007-08-16  9:03     ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2007-08-16  9:03 UTC (permalink / raw)
  To: Mike Hommey; +Cc: Git Mailing List

Mike Hommey <mh@glandium.org> wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-16  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 18:12 git-svn fetch updating master Mike Hommey
2007-08-16  8:03 ` Eric Wong
2007-08-16  8:27   ` Mike Hommey
2007-08-16  9:03     ` Eric Wong

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).