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

RE: [BUG] Strange git notes completion behaviour

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Oct 24, 2025, 18:38 UTC
Message-ID
<029f01dc4515$59ae09c0$0d0a1d40$@nexbridge.com>
In-Reply-To
<20251024174659.GA3635620@coredump.intra.peff.net>
On October 24, 2025 1:47 PM, Jeff King wrote:
Show 35 quoted lines
>On Fri, Oct 24, 2025 at 01:33:02PM -0400, rsbecker@nexbridge.com wrote:
>
>> What I found is this:
>>
>> Git drops into sane_execvp and converts the
>>
>> git notes show HEAD
>>
>> to
>>
>> git show 1aa950256829721750e809788e7b858db79a934a.
>>
>> When execvp is called, it immediately fails with a -12 - not returned,
>> just terminates. The -12 is an NonStop-specific execvp error
>> indicating the process failed because the object is invalid (strange
>> and likely an artifact rather than a real problem).
>
>When you say "object" here, you don't mean a Git object, but rather that
>execvp() could not run the "git" binary for some reason (so the "object"
>here is the on-disk executable)? Just making sure I understand.
>
>> When I use the arguments as presented to execvp via bash directly, I get:
>>
>> error: no note found for object
>1aa950256829721750e809788e7b858db79a934a.
>>
>> There is no commit with that hash. HEAD is actually
>> 3fc1917e0e69b23265f5c49f90fdb6f4ed98f4a3
>> so git show is correctly failing. This is Indicating that notes is not
>> invoking git correctly.
>
>Are you sure you are running "git show" there and not "git notes show".
>Because 1aa950256 should be the blob that the note for HEAD points to, and thus
>does not itself have a note. And "git show" should not be looking up notes at all
>(and the "no note found" message is from builtin/notes.c).
I am 100% sure that git notes show is running git show with the notes blob as above.
Previous: Jeff KingNext: Jeff King
Message 9 of 12 in “[BUG] Strange git notes completion behaviour”
  1. rsbecker@nexbridge.comOct 21, 2025
  2. D. Ben KnobleOct 21, 2025
  3. rsbecker@nexbridge.comOct 21, 2025
  4. Jeff KingOct 22, 2025
  5. rsbecker@nexbridge.comOct 22, 2025
  6. Jeff KingOct 23, 2025
  7. rsbecker@nexbridge.comOct 24, 2025
  8. Jeff KingOct 24, 2025
  9. rsbecker@nexbridge.comOct 24, 2025
  10. Jeff KingOct 24, 2025
  11. rsbecker@nexbridge.comOct 24, 2025
  12. Jeff KingOct 24, 2025

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.