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

Re: git fetch --prune fails with "fatal: bad object"

From
FLFred Long <fred_long@fastmail.fm>
Date
Jun 4, 2024, 20:09 UTC
Message-ID
<876fbb07-210e-128e-5289-57ab01761750@fastmail.fm>
In-Reply-To
<20240604104437.GD1781455@coredump.intra.peff.net>

On 6/4/2024 3:44 AM, Jeff King peff-at-peff.net |git bugs/Example Allow| wrote:

Show 5 quoted lines
> In the case of a refs/remotes entry where you happen to know that you
> could re-clone from the other side, it is relatively low stakes. But I
> think keeping a human brain in the loop between corruption and deletion
> is a good thing. Corruption should not be happening so often that it's a
> major pain point.

In my case it's not corruption. It's people creating branches, deleting them, and then removing the commits. (Maybe our git server has an option to automatically prune commits that are not reachable from a branch or tag, I don't know.) But this happens very frequently at my work.

Previous: Jeff KingNext: Jeff King
Message 8 of 16 in “git fetch --prune fails with "fatal: bad object"”
  1. Curley JoeMay 31, 2024
  2. Junio C HamanoMay 31, 2024
  3. rsbecker@nexbridge.comMay 31, 2024
  4. Junio C HamanoJun 1, 2024
  5. Jeff KingJun 4, 2024
  6. Junio C HamanoJun 4, 2024
  7. Jeff KingJun 5, 2024
  8. Fred LongJun 4, 2024
  9. Jeff KingJun 5, 2024
  10. Fred LongJun 5, 2024
  11. Jeff KingJun 6, 2024
  12. Fred LongJun 6, 2024
  13. Jeff KingJun 8, 2024
  14. Fred LongJun 8, 2024
  15. Jeff KingJun 11, 2024
  16. Fred LongJun 13, 2024

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.