# Error running 'git status' with Git version of current 'next' branch

2 messages from 2014-07-09 to 2014-07-12. Participants: Ralf Thielow, Jeff King.
Thread: https://gitlist.dev/t/37082

## Ralf Thielow, 2014-07-09 07:10

Subject: Error running 'git status' with Git version of current 'next' branch
Message-ID: <CAN0XMOKmbQ_adDjUH3+o-RRm0pcQpH=fH9zDTe4=+b_aU_0GoQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAN0XMOKmbQ_adDjUH3%2Bo-RRm0pcQpH%3DfH9zDTe4%3D%2Bb_aU_0GoQ%40mail.gmail.com

```
Hi,

I'm getting the following error when calling 'git status' on one of
my projects.

git: dir.c:739: last_exclude_matching_from_list: Assertion `x->baselen
== 0 || x->base[x->baselen - 1] == '/'' failed.
Aborted (core dumped)

I'm using the current 'next', git version 2.0.1.664.g35b839c
I have bisected it to commit d3ccb7d (dir: remove PATH_MAX limitation).

Here's a simple script to reproduce it:

mkdir tmp
cd tmp
git init
mkdir -p foo/foooooooooo-bar/foooobar/foo/bar/foo/foobar/foooooooo/baaaaaar/fooooo
echo /foo >foo/.gitignore
git status

Ralf

```

## Jeff King, 2014-07-12 04:59

Subject: Re: Error running 'git status' with Git version of current 'next' branch
Message-ID: <20140712045902.GB20675@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20140712045902.GB20675%40sigill.intra.peff.net
In-Reply-To: <CAN0XMOKmbQ_adDjUH3+o-RRm0pcQpH=fH9zDTe4=+b_aU_0GoQ@mail.gmail.com>

```
On Wed, Jul 09, 2014 at 09:10:49AM +0200, Ralf Thielow wrote:

> I'm getting the following error when calling 'git status' on one of
> my projects.
> 
> git: dir.c:739: last_exclude_matching_from_list: Assertion `x->baselen
> == 0 || x->base[x->baselen - 1] == '/'' failed.
> Aborted (core dumped)
> 
> I'm using the current 'next', git version 2.0.1.664.g35b839c
> I have bisected it to commit d3ccb7d (dir: remove PATH_MAX limitation).

Thanks for bisecting. That commit has been reverted from next in favor
of a nicer refactoring, though, so I don't think it's worth tracking
down the bug in d3ccb7d.

-Peff

```
