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

Re: [Question] Git recovery with HEAD commit broken

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 11, 2013, 19:12 UTC
Message-ID
<20131211191207.GL2311@google.com>
In-Reply-To
<20131211161407.GA15939@kitenet.net>
Joey Hess wrote:
> [2] A particularly annoying one is that git branch -d cannot be used
>     to remove a branch that is directly pointing to a corrupted commit!

It's generally considered okay for everyday commands like "git branch -d" not to cope well with corrupted repositories, but we try to keep plumbing like "git update-ref -d" working to give people a way out. Is update-ref -d broken in this situation, too?

Curious, Jonathan

Previous: Joey Hess
Message 4 of 4 in “[Question] Git recovery with HEAD commit broken”
  1. Shilong WangDec 11, 2013
  2. Matthieu MoyDec 11, 2013
  3. Joey HessDec 11, 2013
  4. Jonathan NiederDec 11, 2013

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.