Linux kernel sources changed to OSX immediately after cloning

When I cloned Linux sources on OS X, they change immediately, and git reset --hardnot return the contents. Here's the full session:

$ git clone git://github.com/torvalds/linux.git
$ cd linux
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   include/uapi/linux/netfilter/xt_CONNMARK.h
    modified:   include/uapi/linux/netfilter/xt_DSCP.h
    modified:   include/uapi/linux/netfilter/xt_MARK.h
    modified:   include/uapi/linux/netfilter/xt_RATEEST.h
    modified:   include/uapi/linux/netfilter/xt_TCPMSS.h
    modified:   include/uapi/linux/netfilter_ipv4/ipt_ECN.h
    modified:   include/uapi/linux/netfilter_ipv4/ipt_TTL.h
    modified:   include/uapi/linux/netfilter_ipv6/ip6t_HL.h
    modified:   net/netfilter/xt_DSCP.c
    modified:   net/netfilter/xt_HL.c
    modified:   net/netfilter/xt_RATEEST.c
    modified:   net/netfilter/xt_TCPMSS.c

no changes added to commit (use "git add" and/or "git commit -a")

As we can see, the files were changed immediately after cloning. And even their metadata, but the contents:

git diff include/uapi/linux/netfilter_ipv6/ip6t_HL.h
index ebd8ead..6e76dbc 100644
--- a/include/uapi/linux/netfilter_ipv6/ip6t_HL.h
+++ b/include/uapi/linux/netfilter_ipv6/ip6t_HL.h
@@ -1,6 +1,6 @@
-/* Hop Limit modification module for ip6tables
+/* ip6tables module for matching the Hop Limit value
  * Maciej Soltysiak <solt@dns.toxicfilms.tv>
- * Based on HW TTL module */
+ * Based on HW ttl module */

 #ifndef _IP6T_HL_H
 #define _IP6T_HL_H
@@ -8,14 +8,14 @@
 #include <linux/types.h>

 enum {
-   IP6T_HL_SET = 0,
-   IP6T_HL_INC,
-   IP6T_HL_DEC
+   IP6T_HL_EQ = 0,     /* equals */
+   IP6T_HL_NE,     /* not equals */
+   IP6T_HL_LT,     /* less than */
+   IP6T_HL_GT,     /* greater than */
 };

-#define IP6T_HL_MAXMODE    IP6T_HL_DEC

-struct ip6t_HL_info {
+struct ip6t_hl_info {
    __u8    mode;
    __u8    hop_limit;
 };

System Information:

  • File System: Registered HFS +
  • Operating System: OS X 10.11.5 (15F34)
  • git version: 2.9.0
  • ~/.gitconfigonly has a [user]record.

What's happening? Why were the files changed right after cloning?

+4
source share
1 answer

, OS X - Unix, - Linux- Unix. , OS X - , , NextStep ( Unix) FreeBSD, Linux - , , GNU, , OS X MacOS 9.

, HFS (, Windows NTFS), Linux, . : "A.txt" "a.txt" ?

Git Linus Torvalds, Linux , , , Linux , - .

, , , , git , , "A.txt" "a.txt" Linux , HFS OS X , , ( ).

, git , , , "A.txt" "a.txt" . , .

. , . OS X Disk Utility → File → New Image OS X, . , , Terminal.app. . .

, , , , , , OS X Linux. , Linux. Virtualbox plus Ubuntu 16.04 .

+5

All Articles