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

Re: Fwd: after first git clone of linux kernel repository there are changed files in working dir

From
Rrdkrsr <rdkrsr@googlemail.com>
Date
Dec 11, 2008, 17:58 UTC
Message-ID
<d304880b0812110958u3da52e4fs7e5154ebe9a353a@mail.gmail.com>
In-Reply-To
<alpine.LFD.2.00.0812110934180.3340@localhost.localdomain>
Thank you, Linus and Brett, for your answers.

I'm not developing linux kernel, I just wanted to experiment with git. And then I didn't know if this is a normal behaviour of git. I'm using windows xp and msysgit for this. And the file system is NTFS. I'm using dual boot to sporadicly use linux and tried also linux in virtual box. But both isn't really good. Maybe one day I dare to use linux as my primary OS.

Red
2008/12/11 Linus Torvalds <torvalds@linux-foundation.org>:
Show 45 quoted lines
>
>
> On Thu, 11 Dec 2008, rdkrsr wrote:
>>
>> I'm sorry that I didn't answer to git mailing list address. So here
>> comes the email again.
>
> You have a broken filesystem.
>
>> $ git status
>> # On branch master
>> # Changed but not updated:
>> #   (use "git add <file>..." to update what will be committed)
>> #
>> #       modified:   Documentation/IO-mapping.txt
>> #       modified:   include/linux/netfilter/xt_CONNMARK.h
>> #       modified:   include/linux/netfilter/xt_DSCP.h
>> #       modified:   include/linux/netfilter/xt_MARK.h
>> #       modified:   include/linux/netfilter/xt_RATEEST.h
> ...
>
> This is _exactly_ what happens if you try to develop the Linux kernel on a
> case-insensitive filesystem. The kernel source tree has several files that
> differ only in case, eg
>
>        Documentation/IO-mapping.txt
>        Documentation/io-mapping.txt
>        include/linux/netfilter/xt_tcpmss.h
>        include/linux/netfilter/xt_TCPMSS.h
>        ..
>
> and if you try to check it out on a broken filesystem, then the second
> file will overwrite the first one, and git will think that you have
> modified it.
>
> OS X? Afaik, you can fix it by using NFS or UFS. And I think ZFS has a
> case-sensitive mode too (and it may even be the default). In fact, I think
> newer versions of OS X even allow that piece-of-sh*t HFS+ to be case
> sensitive (and thus make it much less sh*tty).
>
> Of course, there are reports of some Mac software breaking when they use a
> real filesystem, but hey, what else is new?
>
>                        Linus
>
Previous: Linus TorvaldsNext: Boyd Stephen Smith Jr.
Message 13 of 16 in “after first git clone of linux kernel repository there are changed files in working dir”
  1. rdkrsrDec 10, 2008
  2. Brett SimmersDec 10, 2008
  3. Hannu KoivistoJan 19, 2009
  4. An idea: maybe Git should use a lock/unlock file mode for problematic files? [Was: Re: after first git clone of linux kernel repository there are changed files in working dir]thestar@fussycoder.id.au, Jan 19, 2009
  5. Daniel BarkalowJan 20, 2009
  6. John ChapmanJan 20, 2009
  7. Daniel BarkalowJan 20, 2009
  8. Alex RiesenJan 20, 2009
  9. Daniel BarkalowJan 21, 2009
  10. Alex RiesenJan 21, 2009
  11. Fwd: after first git clone of linux kernel repository there are changed files in working dirrdkrsr, Dec 11, 2008
  12. Linus TorvaldsDec 11, 2008
  13. rdkrsrDec 11, 2008
  14. Boyd Stephen Smith Jr.Dec 11, 2008
  15. Giuseppe BilottaDec 11, 2008
  16. Nick AndrewDec 12, 2008

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.