Subject: Re: Getting new branches from remote repo.

From: Shawn Pearce <[email-masked]>
Date: Mon, 13 Nov 2006 12:44:57 -0500

Karl Hasselstr?m <[email-masked]> wrote:
> On 2006-11-12 20:49:33 -0800, Junio C Hamano wrote:
> > After finding out $that_new_branch's name, add either
> >
> >       Pull: refs/heads/$that_new_branch:refs/heads/$that_new_branch
> >
> > or if you are in "separate remote" school, then perhaps
> >
> >       Pull: refs/heads/$that_new_branch:refs/remotes/origin/$that_new_branch
> >
> > to .git/remotes/origin and running git fetch would give you what you
> > want, I think.
> 
> There really should be a flag to make git fetch do this job. And if we
> use separate remotes, the flag should probably default to "on".

And also to automatically stop fetching any branch which is no longer
listed on the remote system, rather than reporting a "Fetch failure".

I probably would keep the local ref (they are cheap) just in case
the user was counting on that branch and then the remote system
pulled the rug out from under them.  :-)

--