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

Re: [PATCH] branch: don't assume the merge filter ref exists

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 28, 2012, 17:32 UTC
Message-ID
<7vehte27a2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1330442090.691.9.camel@centaur.lab.cmartin.tk>
Carlos Martín Nieto <cmn@elego.de> writes:
Show 13 quoted lines
> On Mon, 2012-02-27 at 14:43 -0500, Jeff King wrote:
>> 
>> It looks like "bad object" generally comes from parse_object failing,
>> which makes sense. It either means object corruption or you fed a full
>> 40-char sha1 that didn't exist (which, if you are being that specific,
>> probably is an indication of broken-ness in your repository).
>
> Right. Another version of the fix I was playing with used parse_object
> after get_sha1 in opt_parse_merge_filter to make sure there that the
> objects did exist, so I copied that error message for this patch.
>
> I see Junio's already squashed this in, and it's certainly a better
> message.

Ok, so what I have is good for everybody. Will merge to "next" and soon to "master" and "maint".

Thanks, both.
Previous: Carlos Martín Nieto
Message 8 of 8 in “[BUG] git branch --merged $unknown_checksum segfaults”
  1. Bernhard Reutner-FischerFeb 27, 2012
  2. branch: don't assume the merge filter ref existsCarlos Martín Nieto, Feb 27, 2012
  3. Junio C HamanoFeb 27, 2012
  4. Jeff KingFeb 27, 2012
  5. Junio C HamanoFeb 27, 2012
  6. Jeff KingFeb 27, 2012
  7. Carlos Martín NietoFeb 28, 2012
  8. Junio C HamanoFeb 28, 2012

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.