{"thread":{"id":"16948","subject":"git has modified files after clean checkout","startedAt":"2008-12-31T20:23:57Z","lastAt":"2009-01-05T05:11:39Z","messageCount":6,"participants":["Caleb Cushing","David Aguilar","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"99072","messageId":"81bfc67a0812311223g2b6e8476y84b23c19977dfd10@mail.gmail.com","threadId":"16948","inReplyTo":null,"subject":"git has modified files after clean checkout","fromName":"Caleb Cushing","fromEmail":"xenoterracide@gmail.com","sentAt":"2008-12-31T20:23:57Z","receivedAt":"2008-12-31T20:23:57Z","isPatch":false,"sender":{"key":"xenoterracide@gmail.com","avatar":"https://gravatar.com/avatar/af3f0745dfa0ea9c4ee551d7d0a3cfe7ba8d229754c11678ab2ed23c3fa57065?d=mp&s=160"},"body":"here's what I did\n\nrm -r portage\ngit clone git@github.com:xenoterracide/portage.git\ncd portage\ngit checkout origin/regen2 -b regen2\ngit status\n\n# On branch regen2\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#\n#       modified:\nx11-themes/metacity-themes/files/metacity-themes-1.0-gentoo.diff\n#       modified:\nx11-themes/metacity-themes/files/metacity-themes-1.2-gentoo.diff\n#\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\nwhy are there files claiming to be modified? this is a clean clone.\nI've had this before I usually end up doing a git reset --hard HEAD,\nbut I'm thinking it's a bug, since I've seen it vary on the same clone\nand sometimes even disappear.\n\ngit version 1.6.0.6\n-- \nCaleb Cushing\n\nhttp://xenoterracide.blogspot.com\n"},{"id":"99073","messageId":"402731c90812311541v28ac9617ge52e0e5c0f1298d2@mail.gmail.com","threadId":"16948","inReplyTo":"81bfc67a0812311223g2b6e8476y84b23c19977dfd10@mail.gmail.com","subject":"Re: git has modified files after clean checkout","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2008-12-31T23:41:36Z","receivedAt":"2008-12-31T23:41:36Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On Wed, Dec 31, 2008 at 12:23 PM, Caleb Cushing <xenoterracide@gmail.com> wrote:\n> here's what I did\n>\n> rm -r portage\n> git clone git@github.com:xenoterracide/portage.git\n\n\nHere's the anonymous clone URL (the one you provided is private)\n    $ git clone git://github.com/xenoterracide/portage.git\n\nRead on below...\n\n> cd portage\n> git checkout origin/regen2 -b regen2\n> git status\n>\n> # On branch regen2\n> # Changed but not updated:\n> #   (use \"git add <file>...\" to update what will be committed)\n> #\n> #       modified:\n> x11-themes/metacity-themes/files/metacity-themes-1.0-gentoo.diff\n> #       modified:\n> x11-themes/metacity-themes/files/metacity-themes-1.2-gentoo.diff\n> #\n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n>\n> why are there files claiming to be modified? this is a clean clone.\n> I've had this before I usually end up doing a git reset --hard HEAD,\n> but I'm thinking it's a bug, since I've seen it vary on the same clone\n> and sometimes even disappear.\n>\n> git version 1.6.0.6\n> --\n> Caleb Cushing\n>\n> http://xenoterracide.blogspot.com\n\nI followed the steps above and did not run into any such issues.\n\n$ git status\n# On branch regen2\nnothing to commit (working directory clean)\n\n$ git version\ngit version 1.6.1.28.gc32f76\n(Junio's latest master at the moment)\n\nHere's my quick guess based on what I'm seeing --\n\nThe files you mention contain CRLF.  Do you have core.autocrlf set\nglobally somewhere, perhaps in your ~/.gitconfig?\n\nIt's possible that the autocrlf stuff is messing with those files.\nThey seem to be a mix of both unix LF and CRLF (the CRLF stuff doesn't\nstart until line 104 of\nx11-themes/metacity-themes/files/metacity-themes-1.0-gentoo.diff, for\nexample, which is kinda odd but maybe be intentional?)\n\nCheck your autocrlf settings.\nThe following commands print out nothing for me:\n\n    $ git config core.autocrlf\n    $ git config --global core.autocrlf\n\nAnyways.. like I said -- I couldn't reproduce your problem so this is\npure speculation on my part =)\n\nGood luck,\n\n-- \n    David\n"},{"id":"99080","messageId":"81bfc67a0901010048l7a4a8fa1h42f7cd448dfc704@mail.gmail.com","threadId":"16948","inReplyTo":"402731c90812311541v28ac9617ge52e0e5c0f1298d2@mail.gmail.com","subject":"Re: git has modified files after clean checkout","fromName":"Caleb Cushing","fromEmail":"xenoterracide@gmail.com","sentAt":"2009-01-01T08:48:05Z","receivedAt":"2009-01-01T08:48:05Z","isPatch":false,"sender":{"key":"xenoterracide@gmail.com","avatar":"https://gravatar.com/avatar/af3f0745dfa0ea9c4ee551d7d0a3cfe7ba8d229754c11678ab2ed23c3fa57065?d=mp&s=160"},"body":">  The files you mention contain CRLF.  Do you have core.autocrlf set\n>  globally somewhere, perhaps in your ~/.gitconfig?\n\nyes I have it set to input\n\n>  Anyways.. like I said -- I couldn't reproduce your problem so this is\n>  pure speculation on my part =)\n\nit's inconsistent although I see something more often than not, and\nonly with this particular repository. Sometimes it's one set of files\nother times it's others. this time it was 2 sometimes it's more like\n40 (just throwing numbers around) and that can be the same unchanged\nclone. seem to happen on checkout. heck even noticed a git reset\n--hard HEAD didn't clear it all the first time today, in one case.\n\nafter sleep I'll see if 1.6.1 fixes my issue.\n\n-- \nCaleb Cushing\n\nhttp://xenoterracide.blogspot.com\n"},{"id":"99099","messageId":"200901012048.13630.trast@student.ethz.ch","threadId":"16948","inReplyTo":"81bfc67a0901010048l7a4a8fa1h42f7cd448dfc704@mail.gmail.com","subject":"Re: git has modified files after clean checkout","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2009-01-01T19:48:11Z","receivedAt":"2009-01-01T19:48:11Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Caleb Cushing wrote:\n> >  The files you mention contain CRLF.  Do you have core.autocrlf set\n> >  globally somewhere, perhaps in your ~/.gitconfig?\n> \n> yes I have it set to input\n\nDo you have any .gitattributes?  A few days ago, ludde on IRC bumped\ninto the problem that git-checkout applies the .gitattributes that are\npresent in the tree *before* the checkout.  Naturally this means that\nthe .gitattributes do not apply at all during the first checkout at\nthe end of cloning.  In ludde's case, this caused git-blame to think\nthe file had all line endings changed compared to the index version.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n\n\n"},{"id":"99145","messageId":"81bfc67a0901012149u23c8c9avb6f47817a56750c7@mail.gmail.com","threadId":"16948","inReplyTo":"200901012048.13630.trast@student.ethz.ch","subject":"Re: git has modified files after clean checkout","fromName":"Caleb Cushing","fromEmail":"xenoterracide@gmail.com","sentAt":"2009-01-02T05:49:40Z","receivedAt":"2009-01-02T05:49:40Z","isPatch":false,"sender":{"key":"xenoterracide@gmail.com","avatar":"https://gravatar.com/avatar/af3f0745dfa0ea9c4ee551d7d0a3cfe7ba8d229754c11678ab2ed23c3fa57065?d=mp&s=160"},"body":"> Do you have any .gitattributes?  A few days ago, ludde on IRC bumped\n>  into the problem that git-checkout applies the .gitattributes that are\n>  present in the tree *before* the checkout.  Naturally this means that\n>  the .gitattributes do not apply at all during the first checkout at\n>  the end of cloning.  In ludde's case, this caused git-blame to think\n>  the file had all line endings changed compared to the index version.\n>\nno, no .gitattributes to my knowledge (file doesn't exist). but it's\nnot just during the first checkout.\n\n# On branch regen2\n# Your branch is ahead of 'funtoo/funtoo.org' by 1 commit.\n#\n# Changed but not updated:\n#   (use \"git add <file>...\" to update what will be committed)\n#\n#       modified:   app-admin/petrovich/files/petrovich-1.0.0-gentoo.diff\n#       modified:   app-cdr/mode2cdmaker/files/mode2cdmaker-1.5.1-gentoo.patch\n#       modified:   app-crypt/mhash/files/mhash-0.9.9-mutils-align.patch\n#       modified:   app-crypt/rainbowcrack/files/rainbowcrack-1.2+gcc-4.3.patch\n#       modified:   app-crypt/rainbowcrack/files/rainbowcrack-1.2-share.patch\n#       modified:   app-crypt/rainbowcrack/files/rainbowcrack-1.2-types.patch\n#       modified:   app-editors/leo/files/leoConfig.py.patch\n#       modified:\napp-emacs/aspectj4emacs/files/aspectj4emacs-1.1_beta2-browse-url-new-window-gentoo.patch\n#       modified:\napp-emacs/aspectj4emacs/files/aspectj4emacs-1.1_beta2-compile-log-gentoo.patch\n...\nthat continues on for a while, all that was done was a git pull funtoo\nfuntoo.org\n\nI haven't had time to test 1.6.1 yet\n\n\n-- \nCaleb Cushing\n\nhttp://xenoterracide.blogspot.com\n"},{"id":"99347","messageId":"81bfc67a0901042111v67fa1fb7k3a73722c2273ebec@mail.gmail.com","threadId":"16948","inReplyTo":"81bfc67a0901012149u23c8c9avb6f47817a56750c7@mail.gmail.com","subject":"Re: git has modified files after clean checkout","fromName":"Caleb Cushing","fromEmail":"xenoterracide@gmail.com","sentAt":"2009-01-05T05:11:39Z","receivedAt":"2009-01-05T05:11:39Z","isPatch":false,"sender":{"key":"xenoterracide@gmail.com","avatar":"https://gravatar.com/avatar/af3f0745dfa0ea9c4ee551d7d0a3cfe7ba8d229754c11678ab2ed23c3fa57065?d=mp&s=160"},"body":"testing 1.6.1 release (not head) and still see the issue. right now\nI'm assuming disabling autocrlf = input would help. regardless is this\nbehavior a bug or anticipated?\n\n-- \nCaleb Cushing\n\nhttp://xenoterracide.blogspot.com\n"}]}