git newbie question: git diff vs git status

Jonathan Whiteland jonathan.whiteland at ytko.com
Thu Aug 7 12:09:22 CEST 2008


On Mon, Aug 04, 2008 at 01:57:22PM +0100, Longman wrote:
> Jonathan, did you get any further with your git problems?

Yes, I had another look at this yesterday, so was going to post back  
to the list.

If I take a git-free copy of the project directory  onto my MacOSX  
desktop it all works exactly as it should. A initial commit ("git  
init / git add . / git commit") leaves nothing listed as "modified"  
with "git status"; changing a file then shows it as updated, adding  
it, re-committing, back to nothing modified, etc etc. Everything fine.

However, deleting the .git directory (with gay abandon!) from the  
project on the Windows2000 sever, mounted via SMB on my Mac, and re- 
initing it etc displays exactly the problems I reported last time:  
i.e. after "git init / git add . / git commit", everything's still  
listed as modified. I thought it might be a timing/stat issue (the  
server was a fair bit out), but I've installed an NTP client before  
doing this test, and it made no difference.

So it seems to be some interaction between git and the particular way  
MacOSX is mounting the disk (or the way Windows2000 is sharing it).

Anyhow... events have taken over: one of our Dell servers died on  
Tuesday (after 11 years!), so we've decided to take the plunge to  
switch everything to MacOSX server where - I presume - the git  
problems may go away. Leaving us none-the-wiser of course.

Yes, I know I should be putting in a linux server. I'm sorry. :-(

   Jonathan

-- 







More information about the CLUG mailing list