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

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

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Jul 9, 2014, 07:10 UTC
Message-ID
<CAN0XMOKmbQ_adDjUH3+o-RRm0pcQpH=fH9zDTe4=+b_aU_0GoQ@mail.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
Next: Jeff King
Message 1 of 2 in “Error running 'git status' with Git version of current 'next' branch”
  1. Ralf ThielowJul 9, 2014
  2. Jeff KingJul 12, 2014

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.