Re: BUGREPORT: Modified files on a fresh clone on M2 MacBook Pro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 22, 2023 at 09:46:11AM -0700, Emily Shaffer wrote:

> On Wed, Mar 22, 2023 at 9:38 AM Sjur Moshagen <sjurnm@xxxxxxx> wrote:
> >
> > Thank you for filling out a Git bug report!
> > Please answer the following questions to help us understand your issue.
> >
> > What did you do before the bug happened? (Steps to reproduce your issue)
> > git clone https://github.com/giellalt/lang-sma
> >
> > What did you expect to happen? (Expected behavior)
> > Clone to be clean, as reported by git status
> >
> > What happened instead? (Actual behavior)
> > git status reported four changed files
> 
> It would help to know which files, or what the difference was, so we
> have a chance to figure out what happens without having to go and buy
> a Macbook :)

Just a guess, but it probably has to do with Unicode normalization.

  $ git clone https://github.com/giellalt/lang-sma
  $ cd lang-sma
  $ git ls-files -z |
    perl -MUnicode::Normalize -0ne '
      chomp;
      print "$_\n" if NFD($_) ne $_;
    '
  corp/SNÅSNINGEN 2014/10 uke/Arbeidsliv - sørsamisk.docx
  corp/SNÅSNINGEN 2014/10 uke/Arbeidsliv.docx
  [...and so on, there are 540 entries...]

HFS silently normalized everything to NFD. On newer installs using APFS,
I think the rules are different, but I haven't followed the details.

I'm not sure if this is a red herring (after all, I'd expect 540 such
files on HFS) or if some of the files are somehow special for APFS (I
looked for obvious things like collisions after normalization, but
didn't see any). I agree it would help to know which 4 files. :)

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux