git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Errors when updating an old git.git repository

From
Junio C Hamano <junkio@cox.net>
Date
Dec 27, 2006, 00:58 UTC
Message-ID
<7vwt4eb1d9.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<877iwew4iw.fsf@trews52.bothi.fi>
Hannu Koivisto <azure@iki.fi> writes:
Show 14 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> ...
>> So, you _asked_ git to fetch these three branches!
>
> Well, that's true from a technical standpoint, but I didn't add
> those lines to .git/remotes/origin, git did when I cloned the
> repository.  When one updates tracking branches and a branch has
> been deleted in the remote repository, I think it wouldn't be
> insane to expect git also to remove the line (if not the actual
> branch).  If that is not desired, I'd rather the message wasn't an
> error but something along the lines of "note: remote branch jc/bind
> no longer exists, please update .git/remotes/origin".  It's bit odd
> to get errors in a situation that (given the assumption) isn't
> erroneous.

I would be a bit reluctant to remove tracking automagically, but I fully agree that a comment like that would be needed.

Patches?
Previous: Hannu Koivisto
Message 7 of 7 in “Errors when updating an old git.git repository”
  1. Hannu KoivistoDec 26, 2006
  2. Lars HjemliDec 26, 2006
  3. Hannu KoivistoDec 26, 2006
  4. Johannes SchindelinDec 26, 2006
  5. Junio C HamanoDec 27, 2006
  6. Hannu KoivistoDec 27, 2006
  7. Junio C HamanoDec 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.