{"thread":{"id":"13338","subject":"Files need updating following a clone?","startedAt":"2008-04-30T23:12:16Z","lastAt":"2008-05-01T01:07:12Z","messageCount":4,"participants":["edpark","Matt Graham","Avery Pennarun"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"75721","messageId":"65e5553a-a630-4b1a-9c81-f0ed7d9d7361@c19g2000prf.googlegroups.com","threadId":"13338","inReplyTo":null,"subject":"Files need updating following a clone?","fromName":"edpark","fromEmail":"edpark@gmail.com","sentAt":"2008-04-30T23:12:16Z","receivedAt":"2008-04-30T23:12:16Z","isPatch":false,"sender":{"key":"edpark@gmail.com","avatar":null},"body":"This is really strange and I'm wondering if anyone here can help me\nout.\n\nI just cloned a remote repository and when I execute a 'git status'\nright after it says that some files need to be updated:\n\nutsd.txt:   needs update\n\nIf I just cloned a remote repo how did these files get modified?  How\ncan I make git realize that these files aren't modified?\nFurther, if I clone to a different machine then the git on that\nmachine doesn't indicate that any files were modified (??).\n\nThanks in advance!\n"},{"id":"75726","messageId":"1c5969370804301732i282064f7r55858d54a6796791@mail.gmail.com","threadId":"13338","inReplyTo":"65e5553a-a630-4b1a-9c81-f0ed7d9d7361@c19g2000prf.googlegroups.com","subject":"Re: Files need updating following a clone?","fromName":"Matt Graham","fromEmail":"mdg149@gmail.com","sentAt":"2008-05-01T00:32:03Z","receivedAt":"2008-05-01T00:32:03Z","isPatch":false,"sender":{"key":"mdg149@gmail.com","avatar":"https://gravatar.com/avatar/a1f130a60a6550f75e8d7d3849e58e46494f36bfaf764a38cfd695ac85de8576?d=mp&s=160"},"body":"On Wed, Apr 30, 2008 at 7:12 PM, edpark <edpark@gmail.com> wrote:\n> This is really strange and I'm wondering if anyone here can help me\n>  out.\n>\n>  I just cloned a remote repository and when I execute a 'git status'\n>  right after it says that some files need to be updated:\n>\n>  utsd.txt:   needs update\n>\n>  If I just cloned a remote repo how did these files get modified?  How\n>  can I make git realize that these files aren't modified?\n>  Further, if I clone to a different machine then the git on that\n>  machine doesn't indicate that any files were modified (??).\n\nWhat systems are you using?  Someone recently posted a probably\nunrelated issue when mixing macs and windows.\nhttp://article.gmane.org/gmane.comp.version-control.git/80548/match=mac+modified\n"},{"id":"75727","messageId":"eb5498bc-9169-4f03-a725-f8ff98f9b39a@x19g2000prg.googlegroups.com","threadId":"13338","inReplyTo":"1c5969370804301732i282064f7r55858d54a6796791@mail.gmail.com","subject":"Re: Files need updating following a clone?","fromName":"edpark","fromEmail":"edpark@gmail.com","sentAt":"2008-05-01T00:54:57Z","receivedAt":"2008-05-01T00:54:57Z","isPatch":false,"sender":{"key":"edpark@gmail.com","avatar":null},"body":"Hi Matt, thanks for pointing that out.\nYes, it turns out that we are using different systems.  The original\ncommit (to Github.com) was on a Mac but then there were a few commits\nmade from a Windows based system (through Parallels).\nIt's only on a windows based system that Git will claim that files\nneed to be updated; this doesn't happen on a Mac.\nHope this helps someone figure out what's going on ..\n\n\nOn Apr 30, 5:32 pm, \"Matt Graham\" <mdg...@gmail.com> wrote:\n> On Wed, Apr 30, 2008 at 7:12 PM, edpark <edp...@gmail.com> wrote:\n> > This is really strange and I'm wondering if anyone here can help me\n> >  out.\n>\n> >  I just cloned a remote repository and when I execute a 'git status'\n> >  right after it says that some files need to be updated:\n>\n> >  utsd.txt:   needs update\n>\n> >  If I just cloned a remote repo how did these files get modified?  How\n> >  can I make git realize that these files aren't modified?\n> >  Further, if I clone to a different machine then the git on that\n> >  machine doesn't indicate that any files were modified (??).\n>\n> What systems are you using?  Someone recently posted a probably\n> unrelated issue when mixing macs and windows.http://article.gmane.org/gmane.comp.version-control.git/80548/match=m...\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majord...@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"75728","messageId":"32541b130804301807i2e88170dj1fcbf3cec769b69d@mail.gmail.com","threadId":"13338","inReplyTo":"eb5498bc-9169-4f03-a725-f8ff98f9b39a@x19g2000prg.googlegroups.com","subject":"Re: Files need updating following a clone?","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-05-01T01:07:12Z","receivedAt":"2008-05-01T01:07:12Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On 4/30/08, edpark <edpark@gmail.com> wrote:\n> Hi Matt, thanks for pointing that out.\n>  Yes, it turns out that we are using different systems.  The original\n>  commit (to Github.com) was on a Mac but then there were a few commits\n>  made from a Windows based system (through Parallels).\n>  It's only on a windows based system that Git will claim that files\n>  need to be updated; this doesn't happen on a Mac.\n>  Hope this helps someone figure out what's going on ..\n\nYou probably have files checked into your tree with windows-style CRLF\ninstead of unix-style LF line endings, and git for Windows nowadays\nhas \"git config --global core.autocrlf true\" set.\n\nIf you configure your windows autocrlf setting to false, this\nparticular symptom will go away, but you probably want to actually fix\nthe files in the repo so they don't have CRLF problems.  You might be\nable to do that just by doing \"git commit -a\".\n\nGood luck,\n\nAvery\n"}]}