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

Re: git commit -a reports untracked files after a clone

From
Junio C Hamano <gitster@pobox.com>
Date
May 15, 2011, 03:43 UTC
Message-ID
<7v39kgr5ln.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7B399C74-8048-42BA-8672-9D7964F24888@goli.at>
Philipp Metzler <phil@goli.at> writes:
> This is how you can reproduce the problem:
> 1. clone a repo
> 2. run the command "git commit -a"

Does it reproduce with _any_ repository, or just a particular one? If it is the latter, then the above description is useless for anybody to start formulating any theory on what goes wrong. Sorry.

You being on OS X, I would guess that you may have a pathname in the project that HFS+ does not like.

On HFS+, when a program creates a file with "open(filename, O_CREAT)", reading the directory the created path is in with readdir() does not return the string given when it was created but something else for certain pathnames; you may be seeing that git is confused by that behaviour.

But that is just a wild guess.
Previous: Philipp MetzlerNext: Philipp Metzler
Message 2 of 13 in “git commit -a reports untracked files after a clone”
  1. Philipp MetzlerMay 15, 2011
  2. Junio C HamanoMay 15, 2011
  3. Philipp MetzlerMay 15, 2011
  4. Jeff KingMay 16, 2011
  5. Philipp MetzlerMay 16, 2011
  6. Jeff KingMay 16, 2011
  7. Philipp MetzlerMay 16, 2011
  8. Philipp MetzlerMay 16, 2011
  9. Jeff KingMay 16, 2011
  10. Jeff KingMay 27, 2011
  11. Jeff KingMay 27, 2011
  12. Joerg RosenkranzOct 5, 2011
  13. Jeff KingOct 6, 2011

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.