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

git-ls-files prefix superset problem

From
DMDavid Miller <davem@davemloft.net>
Date
Aug 1, 2006, 05:13 UTC
Message-ID
<20060731.221327.26966465.davem@davemloft.net>

I had been previously using git-1.1.3 on my local repositories and I upgraded to the current git head:

b63fafdfd844c2037fba53b9944431c1378b4135

git commit stopped working, specifically it dies on git-ls-files:

davem@sunset:~/src/GIT/net-2.6$ ../git/git-ls-files -- net/ipv4/tcp.c fatal: git-ls-files: internal error - cache entry not superset of prefix davem@sunset:~/src/GIT/net-2.6$

I added some debugging:
Trying get_pathspec([(null)],[net/ipv4/tcp.c])
prefixlen(0)
prefix_path() gives [net/ipv4/tcp.c]
ERROR: pathspec(net/ipv4/tcp.c)
verify_pathspec: len(9)
ERROR: len(9) ce_namelen(ce)(7) ce->name(COPYING)
Is something wrong with my index file?
I tried to rebuild it using:

git read-tree master git checkout-index -f -a git update-index --refresh

but I keep getting the same problem.
It happens on all of my local 2.6.x kernel GIT trees.
Any ideas?
Thanks a lot.
Next: Linus Torvalds
Message 1 of 3 in “git-ls-files prefix superset problem”
  1. David MillerAug 1, 2006
  2. Linus TorvaldsAug 1, 2006
  3. David MillerAug 1, 2006

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.