threads / discuss / 22970

Modified files directly after clone

Subject: Modified files directly after clone

## tl;dr

4 messages between Mar 9, 2010 and Mar 10, 2010.

replies: 3people: 3as markdown or json

Benedikt Andreas Koeppel· Mar 9, 2010, 20:26 UTC · lore
Dear Sir/Madam,
I'm experiencing a strange problem with one of my GIT repositories. The repo is hosted on my Debian 5 server with gitosis. I clone the repo to my Mac OS X 10.6 notebook. Directly after cloning the repository, there are already some modified files which are "Changed but not updated".
This is how I do it: 

==== bash start ==== beninb:Desktop beni$ mkdir tmp beninb:Desktop beni$ cd tmp beninb:tmp beni$ git clone git@gmuasch:ife-maemo.git git Initialized empty Git repository in /Users/beni/Desktop/tmp/git/.git/ remote: Counting objects: 43316, done. remote: Compressing objects: 100% (33045/33045), done. remote: Total 43316 (delta 10942), reused 42064 (delta 9790) Receiving objects: 100% (43316/43316), 518.25 MiB | 640 KiB/s, done. Resolving deltas: 100% (10942/10942), done. Checking out files: 100% (68385/68385), done. beninb:tmp beni$ cd git/ beninb:git beni$ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: source/crn/toolbox/doc/html/classVector.html # modified: source/maemo-beagle/www/files/maemo5-alpha/kernel-2.6.28/Documentation/IO-mapping.txt # some more lines # modified: source/maemo-beagle/www/files/maemo5-alpha/kernel-2.6.28/net/netfilter/xt_TCPMSS.c # modified: source/maemo-kernel/kernel-2.6.28/Documentation/IO-mapping.txt # some more lines # modified: source/maemo-kernel/kernel-2.6.28/net/netfilter/xt_TCPMSS.c # no changes added to commit (use "git add" and/or "git commit -a")

==== bash end ====

"gmuasch" is an SSH-alias for my Debian server git diff gives the following: http://pastie.org/861916

On my server, I'm running git version 1.6.2.4. Locally on my Mac, I have git version 1.6.2. But there were some commits done from Ubuntu 9.10 with git 1.7.0.1.

Those folders are SVN checkouts: source/crn source/maemo-beagle But source/maemo-kernel is not a SVN checkout.

I tried the same procedure on a different machine (running Debian 5, git version 1.6.2.4), and did not have any modified files after cloning the repo. 
How can this happen? Does my Mac somehow interfere with the newly cloned repository?

Best Regards, Benedikt Köppel

Tarmigan· Mar 9, 2010, 21:59 UTC · re: Benedikt Andreas Koeppel · lore

Re: Modified files directly after clone

On Tue, Mar 9, 2010 at 12:26 PM, Benedikt Andreas Koeppel
> How can this happen? Does my Mac somehow interfere with
> the newly cloned repository?

By default HFS+ filesystems on OSX are case insensitive so you see problems like you described with the linux kernel source which has different files named xt_TCPMSS.c and xt_tcpmss.c.

HFS+ partitions can be case sensitive, but are not by default. Unlike some earlier versions, OSX 10.6 can boot from a case sensitive HFS+ filesystem. Even if you do that, OSX (or maybe HFS+) still has issues with unicode normalization described in the archive, but I haven't had a problem with the normalization in practice.

Thanks, Tarmigan

Benedikt Andreas Koeppel· Mar 10, 2010, 06:47 UTC · re: Tarmigan · lore

Re: Modified files directly after clone

Hello,
Am 09.03.2010 um 22:59 schrieb Tarmigan:
> By default HFS+ filesystems on OSX are case insensitive so you see
> problems like you described with the linux kernel source which has
> different files named xt_TCPMSS.c and xt_tcpmss.c.
thank you very much for the explanation. Unfortunately, some software (namely Adobe CS2) does not work properly with HFS+ with case sensitivity. I'll need to get a Linux PC for coding :-).

OK, Problem solved. Thanks. Benedikt

tytso@mit.edu· Mar 10, 2010, 13:48 UTC · re: Benedikt Andreas Koeppel · lore

Re: Modified files directly after clone

On Wed, Mar 10, 2010 at 07:47:24AM +0100, Benedikt Andreas Koeppel wrote:
Show 10 quoted lines
> Hello,
> 
> Am 09.03.2010 um 22:59 schrieb Tarmigan:
> > By default HFS+ filesystems on OSX are case insensitive so you see
> > problems like you described with the linux kernel source which has
> > different files named xt_TCPMSS.c and xt_tcpmss.c.
> 
> thank you very much for the explanation. Unfortunately, some
> software (namely Adobe CS2) does not work properly with HFS+ with
> case sensitivity. I'll need to get a Linux PC for coding :-).

Or you could get a firewire hard drive that you format with HFS+ case sensensitivity enabled, and connect it up to your Mac machine; but don't let me stop you from getting a Linux PC for coding. :-)

      	     	      	   	   - Ted

← back to recent threads