# Failed assertion in pathspec.c

4 messages from 2015-06-13 to 2015-06-14. Participants: Sami Boukortt, Duy Nguyen.
Thread: https://gitlist.dev/t/39618

## Sami Boukortt, 2015-06-13 17:18

Subject: Failed assertion in pathspec.c
Message-ID: <20150613191839.3585effd@SaMobile>
URL: https://gitlist.dev/e/20150613191839.3585effd%40SaMobile

```
Hi,

I can reliably trigger a failed assertion in Git 2.4.3 by performing
the following steps:

mkdir a; cd a
git init
touch a.txt
git add a.txt
git commit -m 'a'
cd ..

mkdir b; cd b
git init
git submodule add ../a
cd a
rm -fr .git
git add .

This results in:
git: pathspec.c:317: prefix_pathspec: Assertion `item->nowildcard_len
<= item->len && item->prefix <= item->len' failed.

```

## Duy Nguyen, 2015-06-14 00:40

Subject: Re: Failed assertion in pathspec.c
Message-ID: <CACsJy8DX9ZnUiFvyLwrhG=BDtXr333WpK5y0Axd0-6grOOf6aA@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8DX9ZnUiFvyLwrhG%3DBDtXr333WpK5y0Axd0-6grOOf6aA%40mail.gmail.com
In-Reply-To: <20150613191839.3585effd@SaMobile>

```
On Sun, Jun 14, 2015 at 12:18 AM, Sami Boukortt <samiboukortt@gmail.com> wrote:
> git: pathspec.c:317: prefix_pathspec: Assertion `item->nowildcard_len
> <= item->len && item->prefix <= item->len' failed.

Known issue, but no one stepped up to fix it yet

http://thread.gmane.org/gmane.comp.version-control.git/267095
-- 
Duy

```

## Sami Boukortt, 2015-06-14 10:21

Subject: Re: Failed assertion in pathspec.c
Message-ID: <20150614122158.4f8042ca@SaMobile>
URL: https://gitlist.dev/e/20150614122158.4f8042ca%40SaMobile
In-Reply-To: <CACsJy8DX9ZnUiFvyLwrhG=BDtXr333WpK5y0Axd0-6grOOf6aA@mail.gmail.com>

```
> On Sun, Jun 14, 2015 at 12:18 AM, Sami Boukortt
> <samiboukortt@gmail.com> wrote:
> > git: pathspec.c:317: prefix_pathspec: Assertion
> > `item->nowildcard_len <= item->len && item->prefix <= item->len'
> > failed.
> 
> Known issue, but no one stepped up to fix it yet
> 
> http://thread.gmane.org/gmane.comp.version-control.git/267095

Oh, I see. Sorry for the duplicate report.

```

## Duy Nguyen, 2015-06-14 10:30

Subject: Re: Failed assertion in pathspec.c
Message-ID: <CACsJy8AJJyJkECxn-DgqRQa4eE0wDAtf0C984psea-x7bFTmaw@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8AJJyJkECxn-DgqRQa4eE0wDAtf0C984psea-x7bFTmaw%40mail.gmail.com
In-Reply-To: <20150614122158.4f8042ca@SaMobile>

```
On Sun, Jun 14, 2015 at 5:21 PM, Sami Boukortt <samiboukortt@gmail.com> wrote:
>> On Sun, Jun 14, 2015 at 12:18 AM, Sami Boukortt
>> <samiboukortt@gmail.com> wrote:
>> > git: pathspec.c:317: prefix_pathspec: Assertion
>> > `item->nowildcard_len <= item->len && item->prefix <= item->len'
>> > failed.
>>
>> Known issue, but no one stepped up to fix it yet
>>
>> http://thread.gmane.org/gmane.comp.version-control.git/267095
>
> Oh, I see. Sorry for the duplicate report.

No, it's actually good. It reminded me about this bug again. Maybe
I'll do something about it :)
-- 
Duy

```
