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

Re: [bug] assertion in 2.8.4 triggering on old-ish worktree

From
Stefan Beller <sbeller@google.com>
Date
Jun 16, 2016, 16:59 UTC
Message-ID
<CAGZ79kbw=XbqmjPQYMsG_F9FYx4o9wY5DpneBXX7RSBUeQ=3CA@mail.gmail.com>
In-Reply-To
<1466096135.28161.9.camel@kaarsemaker.net>

On Thu, Jun 16, 2016 at 9:55 AM, Dennis Kaarsemaker <dennis@kaarsemaker.net> wrote:

Show 29 quoted lines
> On do, 2016-06-16 at 17:02 +1200, Chris Packham wrote:
>> On Thu, Jun 16, 2016 at 4:59 PM, Chris Packham <judge.packham@gmail.c
>> om> wrote:
>> >
>> > Hi All,
>> >
>> > I have the git-sh-prompt configured in my .bashrc today I visited
>> > an
>> > old worktree that I haven't really touched in a few years (sorry
>> > can't
>> > remember the git version I was using back then). I received the
>> > following output when changing to the directory
>> >
>> > git: pathspec.c:317: prefix_pathspec: Assertion `item-
>> > >nowildcard_len
>> > <= item->len && item->prefix <= item->len' failed.
>> >
>> > I assume it's one of the git invocations in git-sh-prompt that's
>> > hitting the assertion. Any thoughts on what might be triggering it?
>> > Any debug I can gather?
>> A bit more info. The directory in question is a uninitialised
>> submodule. It doesn't trigger in the root of the parent project.
>
> That very much smells like a class of bugs we've seen before, with git
> getting confused around submodules. See also for example
>
> https://www.mail-archive.com/git@vger.kernel.org/msg68447.html
>
> I don't think an accepted fix exists yet.

Thanks for pointing me at that report. I was not aware of this "class of bugs", I'll see if I can fix it.

Thanks, Stefan

Show 6 quoted lines
>
> D.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Dennis KaarsemakerNext: Junio C Hamano
Message 5 of 8 in “[bug] assertion in 2.8.4 triggering on old-ish worktree”
  1. Chris PackhamJun 16, 2016
  2. Chris PackhamJun 16, 2016
  3. Stefan BellerJun 16, 2016
  4. Dennis KaarsemakerJun 16, 2016
  5. Stefan BellerJun 16, 2016
  6. Junio C HamanoJun 16, 2016
  7. Stefan BellerJun 16, 2016
  8. Chris PackhamJun 17, 2016

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.