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

Re: Bug in git-status with non-ascii characters:

From
JRJuergen Ruehle <j.ruehle@bmiag.de>
Date
Jan 9, 2007, 05:39 UTC
Message-ID
<17827.10918.897000.825178@lapjr.intranet.kiel.bmiag.de>
In-Reply-To
<7BACA5DE-9DBA-4299-A965-E248263E27E2@silverinsanity.com>
Brian Gernhardt writes:
 > `git status` always reports the following:
 > 
 > ----- 8< -----
 > # On branch refs/heads/master
 > # Untracked files:
 > #   (use "git add <file>..." to incrementally add content to commit)
 > #
 > #       gitweb/test/Märchen
 > no changes added to commit (use "git add" and/or "git commit [-a|-i|- 
 > o]")
 > ----- 8< -----
 > 
 > When I do `rm gitweb/test/M<tab>` to remove this apparently unneeded  
 > file, `git status` reports:
 > 
 > ----- 8< -----
 > # On branch refs/heads/master
 > # Changed but not added:
 > #   (use "git add <file>..." to incrementally add content to commit)
 > #
 > #       deleted:    gitweb/test/Märchen
 > #
 > no changes added to commit (use "git add" and/or "git commit [-a|-i|- 
 > o]")
 > ----- 8< -----
 > 
 > This is on Mac OS X, file system is HFS+ (Journaled).  Is this  
 > expected?  I can't figure out why it's happening.

It's a known problem with HFS+: it uses different byte sequences to identify the same file. Therefore git finds gitweb/test/Märchen unchanged but also a gitweb/test/Märchen in the working directory using a different byte sequence for the name as reported in status. If you delete the file git doesn't find the file any longer and reports that in status as well.

Previous: Brian GernhardtNext: Wolfgang Fischer
Message 4 of 6 in “Bug in git-status with non-ascii characters:”
  1. Brian GernhardtJan 9, 2007
  2. Shawn O. PearceJan 9, 2007
  3. Brian GernhardtJan 9, 2007
  4. Juergen RuehleJan 9, 2007
  5. Wolfgang FischerJan 9, 2007
  6. Johannes SchindelinJan 9, 2007

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.