Skip to contentSkip to conversation

Failed assertion in pathspec.c

DISCUSSION Sami Boukortt 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

#3 lore raw
Quoted 11 lines · Sami Boukortt
Quoted 9 lines
Quoted 3 lines · Sami Boukortt

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 :)

Signature · 1 line
Duy