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

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

From
SMSjur Moshagen <sjurnm@mac.com>
Date
Mar 22, 2023, 17:29 UTC
Message-ID
<3FC6072C-5856-437F-9B4F-BC182921426D@mac.com>
In-Reply-To
<CAJoAoZkKTGzgVyL2wM9a4VcFObx4YpjMSatH9Bpqcgyi=zzBrQ@mail.gmail.com>
22.3.2023 kl. 17:46 skrev Emily Shaffer <nasamuffin@google.com>:
Show 18 quoted lines
> 
> On Wed, Mar 22, 2023 at 9:38 AM Sjur Moshagen <sjurnm@mac.com> 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 :)
Yes, of course :)
It only happens with binary files (.docx and .pdf files), which got me suspicious. It turned out that updating the .gitattributes file fixed the issue, cf
https://github.com/giellalt/lang-sma/commit/fb5b56fa9fa7f25be1a1d7190bbb4d12b5a908fd#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393e
What is still a mystery to me is that there has been no issues with cloning files on Intel Macs (git version 2.39.2), or on Linux (git version 2.34.1), even with the old .gitattributes file - ie the cloned repos were clean on these systems. Only on M2 (possibly also M1) Macs did this issue pop up.
Please tell me if there is more I can do to help.

Regards, Sjur

Previous: Emily ShafferNext: Kristoffer Haugsbakk
Message 3 of 12 in “BUGREPORT: Modified files on a fresh clone on M2 MacBook Pro”
  1. Sjur MoshagenMar 22, 2023
  2. Emily ShafferMar 22, 2023
  3. Sjur MoshagenMar 22, 2023
  4. Kristoffer HaugsbakkMar 22, 2023
  5. Sjur MoshagenMar 22, 2023
  6. Junio C HamanoMar 22, 2023
  7. Kristoffer HaugsbakkMar 22, 2023
  8. Sjur MoshagenMar 22, 2023
  9. Jeff KingMar 22, 2023
  10. Jeff KingMar 22, 2023
  11. Torsten BögershausenMar 23, 2023
  12. Junio C HamanoMar 24, 2023

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.