From: Teemu Likonen Date: Tue, 22 Apr 2008 12:41:18 GMT Subject: Re: git remote update -> rejected Message-ID: <20080422124118.GA3098@mithlond.arda.local> In-Reply-To: <20080422111113.GB11238@sigill.intra.peff.net> Jeff King wrote (2008-04-22 07:11 -0400): > remote: create fetch config lines with '+' > > Since git-remote always uses remote tracking branches, it > should be safe to always force updates of those branches. > I.e., we should generate > > fetch = +refs/heads/*:refs/remotes/$remote/* > > instead of > > fetch = refs/heads/*:refs/remotes/$remote/* > > This was the behavior of the perl version, which seems to > have been lost in the C rewrite. I agree, the "+" should be there. I see remote tracking branches as, well, branches that track remote repository - no matter what happens there. Local branches are under user's personal control, so if user wants to save/keep the information of remote branches he can create local ones out of them: git branch localcopy $remote/$branch