From: Shawn O. Pearce Date: Sun, 04 May 2008 21:52:08 GMT Subject: Re: OSX, ZFS, UTF8, git - somebody hates me in this list Message-ID: <20080504215208.GG29038@spearce.org> In-Reply-To: <86wsm9dbhk.fsf@blue.stonehenge.com> "Randal L. Schwartz" wrote: > > repeat by: > 0) download the OSX ZFS drivers > 1) Make a ZFS partition on OSX. > 2) Clone git.git to the ZFS partition > 3) immediately type git-status: > > # On branch master > # Untracked files: > # (use "git add ..." to include in what will be committed) > # > # "gitweb/test/Ma\314\210rchen" > nothing added to commit but untracked files present (use "git add" to track) Isn't this just the normal HFS+ name mangling? Apparently the ZFS port to Mac OS X includes the same braindamaged UTF normalization that is applied to HFS+ volumes, which means they have reused the code or pushed it higher in their VFS layer. Linus has started to add support for teaching Git about this sort of brain damaged filesystem, but nobody has implemented the Mac OS X specific name hashing function required to make Git see that the name it got from the readdir(3) call is the same name Git passed to the OS, just encoded differently. -- Shawn.