From: Junio C Hamano Date: Sun, 11 Jun 2006 02:12:25 GMT Subject: Re: Problem upgrading to 1.4.0 Message-ID: <7v1wtwh246.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <93c3eada0606101707t5eb35a4du3ebd0fd17737943f@mail.gmail.com> "Geoff Russell" writes: > Hi, > > When I do a "git pull origin" I get messages: > > error: no such remote ref refs/heads/gb/diffdelta > error: no such remote ref refs/heads/jc/bind > error: no such remote ref refs/heads/jc/bind-2 > ... > Fetch failure: git://git.kernel.org/pub/scm/git/git.git >... > So I went into .git/remotes/origin and > removed the lines pointing at these branches and removed the gb and jc > directories > and did another git pull and it seems to have worked. This is the second time this same gotcha caused trouble here. I agree it would be sensible to make git-fetch (which is called by git-pull) to detect stale entries in the remotes/origin file and remote.origin.fetch configuration items.