Re: [bug] assertion in 2.8.4 triggering on old-ish worktree
- From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
- Date
- Jun 16, 2016, 16:55 UTC
- Message-ID
- <1466096135.28161.9.camel@kaarsemaker.net>
- In-Reply-To
- <CAFOYHZArnE6vJ0U1zJAxytCBJJU5M-VtHbct6Qq4VPfw7-T-2A@mail.gmail.com>
On do, 2016-06-16 at 17:02 +1200, Chris Packham wrote:
Show 21 quoted lines
> 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.
D.