osx - Git changes files on Mac OS X -


i cloned old repository containing linux kernel modules (don't ask). if clone on linux machine, fine. on mac however, (presumably mac os x) makes binary changes modules. disabled autocrlf.

here's output of git diff -p --stat directly after clone:

 .../kernel/net/ipv4/netfilter/ipt_ecn.ko           |  bin 3853 -> 4535 bytes  .../kernel/net/ipv4/netfilter/ipt_ttl.ko           |  bin 3458 -> 3904 bytes  .../kernel/net/netfilter/xt_connmark.ko            |  bin 4534 -> 5618 bytes  .../2.6.26-2-686/kernel/net/netfilter/xt_dscp.ko   |  bin 4378 -> 5217 bytes  .../2.6.26-2-686/kernel/net/netfilter/xt_mark.ko   |  bin 3679 -> 4334 bytes  .../kernel/net/netfilter/xt_rateest.ko             |  bin 4545 -> 7137 bytes  .../2.6.26-2-686/kernel/net/netfilter/xt_tcpmss.ko |  bin 3841 -> 6553 bytes  7 files changed, 0 insertions(+), 0 deletions(-)  diff --git a/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ecn.ko b/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ecn.ko index 76d7d8d..b1470d6 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ecn.ko , b/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ecn.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ttl.ko b/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ttl.ko index d974dc9..9dcb633 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ttl.ko , b/i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ttl.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_connmark.ko b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_connmark.ko index d9381a6..14c2a2c 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_connmark.ko , b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_connmark.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_dscp.ko b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_dscp.ko index 36af201..178adfa 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_dscp.ko , b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_dscp.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_mark.ko b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_mark.ko index 2dd1a0a..1329162 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_mark.ko , b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_mark.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_rateest.ko b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_rateest.ko index 8678387..b23e514 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_rateest.ko , b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_rateest.ko differ diff --git a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_tcpmss.ko b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_tcpmss.ko index 13e4891..7c3c61c 100644 binary files a/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_tcpmss.ko , b/i686/modules/2.6.26-2-686/kernel/net/netfilter/xt_tcpmss.ko differ 

a git reset --hard doesn't trick, either. weird happen, though: every time, reset, sizes on right of git diff switch places , capitalizations in filenames change. have case-insensitive filesystem on mac, cause of this? how fix (if possible, without reformatting mac)

the problem due case-insensitive default of hfs+ filesystems.

take first problematic file:

i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ipt_ecn.ko 

you find (as recorded) there file named ipt_ecn.ko in same directory:

git ls-tree head -- i686/modules/2.6.26-2-686/kernel/net/ipv4/netfilter/ |  grep '^ipt_.*\.ko' 

theoretically, reformat boot volume use case sensitive version of hfs+, tends cause problems random applications (e.g. store/install file named foo, later exclusively try read file named foo).

short of bakup/reformat/restore, work in disk image formatted case sensitive hfs+. use disk utility create new disk image (probably “sparse bundle” image) , put working tree in volume (it mounted under /volumes/). may need create default disk image , reformat specifying “mac os extended (case-sensitive, journaled)” in erase tab rsulting volume).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -