{"thread":{"id":"25657","subject":"Checking out messes up execution bit","startedAt":"2010-11-06T21:11:20Z","lastAt":"2010-11-07T00:11:24Z","messageCount":2,"participants":["Manuel Strehl","Peter Harris"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"155306","messageId":"4CD5C478.1010604@physik.uni-regensburg.de","threadId":"25657","inReplyTo":null,"subject":"Checking out messes up execution bit","fromName":"Manuel Strehl","fromEmail":"manuel.strehl@physik.uni-regensburg.de","sentAt":"2010-11-06T21:11:20Z","receivedAt":"2010-11-06T21:11:20Z","isPatch":false,"sender":{"key":"manuel.strehl@physik.uni-regensburg.de","avatar":null},"body":"Hello list,\n\nI asked a question over at superuser.com about git checkouts messing up \nthe execution bit of freshly committed files:\n\nhttp://superuser.com/questions/204757\n\nTo put it in a nutshell: I edit and commit a file in branch \"master\", \nthen I check out branch \"dev\" and the edited file gets the execution bit \nset. This leads to a working copy differing from the content of the \nindex. It's especially painful when I try to merge \"master\" into \"dev\", \nwhich fails then. I'm working under ext4 and Samba/CIFS, respectively.\n\nOne answerer at superuser thinks that this looks like a bug in git \nitself. Therefore I'd like to check with you, if there is possibly \nanother explanation for my observation, before I issue a bug report.\n\nBest,\nManuel\n"},{"id":"155307","messageId":"AANLkTimCm7f445K-RhK4cPhvccVP7LcdQPCxRQ+uVzcW@mail.gmail.com","threadId":"25657","inReplyTo":"4CD5C478.1010604@physik.uni-regensburg.de","subject":"Re: Checking out messes up execution bit","fromName":"Peter Harris","fromEmail":"git@peter.is-a-geek.org","sentAt":"2010-11-07T00:11:24Z","receivedAt":"2010-11-07T00:11:24Z","isPatch":false,"sender":{"key":"git@peter.is-a-geek.org","avatar":null},"body":"On Sat, Nov 6, 2010 at 5:11 PM, Manuel Strehl wrote:\n> To put it in a nutshell: I edit and commit a file in branch \"master\", then I\n> check out branch \"dev\" and the edited file gets the execution bit set. This\n> leads to a working copy differing from the content of the index. It's\n> especially painful when I try to merge \"master\" into \"dev\", which fails\n> then. I'm working under ext4 and Samba/CIFS, respectively.\n\nThis is because CIFS does not support the execution bit.\n\n> One answerer at superuser thinks that this looks like a bug in git itself.\n> Therefore I'd like to check with you, if there is possibly another\n> explanation for my observation, before I issue a bug report.\n\nSee core.fileMode in \"git help config\"\n\nPeter Harris\n"}]}