{"thread":{"id":"38621","subject":"[cosmetic bug?] needlessly(?) executable files","startedAt":"2015-02-21T17:48:37Z","lastAt":"2015-02-23T18:55:57Z","messageCount":5,"participants":["Christoph Anton Mitterer","Junio C Hamano","Dennis Kaarsemaker"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256471","messageId":"1424540917.15539.24.camel@scientia.net","threadId":"38621","inReplyTo":null,"subject":"[cosmetic bug?] needlessly(?) executable files","fromName":"Christoph Anton Mitterer","fromEmail":"calestyo@scientia.net","sentAt":"2015-02-21T17:48:37Z","receivedAt":"2015-02-21T17:48:37Z","isPatch":false,"sender":{"key":"calestyo@scientia.net","avatar":"https://gravatar.com/avatar/74cd78048081efac1fcd21e681751ed55968f949a50e33adbe1a41c572a605cd?d=mp&s=160"},"body":"Hey.\n\nJust a question about files like:\n.git/config\n.git/hooks/*.sample\n\nIs there any reason that these are created executable? Especially the\nconfig file?\nI know the hooks are already disabled by being named .sample, but having\nthem executable just increases the chance that one accidentally fires\nthem up manually.\n\n\nCheers,\nChris.\n"},{"id":"256484","messageId":"xmqqr3thwzur.fsf@gitster.dls.corp.google.com","threadId":"38621","inReplyTo":"1424540917.15539.24.camel@scientia.net","subject":"Re: [cosmetic bug?] needlessly(?) executable files","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-02-22T18:44:12Z","receivedAt":"2015-02-22T18:44:12Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Christoph Anton Mitterer <calestyo@scientia.net> writes:\n\n> Just a question about files like:\n> .git/config\n> .git/hooks/*.sample\n>\n> Is there any reason that these are created executable? Especially the\n> config file?\n\nIn a new repository I just did \"git init\", I see this:\n\n    $ rm -fr stupid\n    $ umask 0027\n    $ git init stupid\n    $ ls -l stupid/.git/config | sed -e 's/ .*//'\n    -rw-r-----\n\nSo no, config is not created executable.\n\n> I know the hooks are already disabled by being named .sample,\n\nI think that is deliberate, so that lazy people can just do:\n\n    $ mv .git/hooks/pre-commit.sample .git/hooks/pre-commit\n\nwithout one more command\n\n    $ chmod +x .git/hooks/pre-commit\n\nafter doing so.\n"},{"id":"256499","messageId":"1424679663.30155.30.camel@kaarsemaker.net","threadId":"38621","inReplyTo":"xmqqr3thwzur.fsf@gitster.dls.corp.google.com","subject":"Re: [cosmetic bug?] needlessly(?) executable files","fromName":"Dennis Kaarsemaker","fromEmail":"dennis@kaarsemaker.net","sentAt":"2015-02-23T08:21:03Z","receivedAt":"2015-02-23T08:21:03Z","isPatch":false,"sender":{"key":"dennis@kaarsemaker.net","avatar":"https://avatars.githubusercontent.com/u/200649?v=4"},"body":"On zo, 2015-02-22 at 10:44 -0800, Junio C Hamano wrote:\n> Christoph Anton Mitterer <calestyo@scientia.net> writes:\n> \n> > Just a question about files like:\n> > .git/config\n> > .git/hooks/*.sample\n> >\n> > Is there any reason that these are created executable? Especially\n> the\n> > config file?\n> \n> In a new repository I just did \"git init\", I see this:\n> \n>     $ rm -fr stupid\n>     $ umask 0027\n>     $ git init stupid\n>     $ ls -l stupid/.git/config | sed -e 's/ .*//'\n>     -rw-r-----\n> \n> So no, config is not created executable.\n\nIt used to be for a brief period in history, between daa22c6f8d (2.1.0)\nand 1f32ecf (2.2.2).\n\n-- \nDennis Kaarsemaker\nhttp://www.kaarsemaker.net\n"},{"id":"256502","messageId":"1424696893.4662.5.camel@scientia.net","threadId":"38621","inReplyTo":"1424679663.30155.30.camel@kaarsemaker.net","subject":"Re: [cosmetic bug?] needlessly(?) executable files","fromName":"Christoph Anton Mitterer","fromEmail":"calestyo@scientia.net","sentAt":"2015-02-23T13:08:13Z","receivedAt":"2015-02-23T13:08:13Z","isPatch":false,"sender":{"key":"calestyo@scientia.net","avatar":"https://gravatar.com/avatar/74cd78048081efac1fcd21e681751ed55968f949a50e33adbe1a41c572a605cd?d=mp&s=160"},"body":"On Mon, 2015-02-23 at 09:21 +0100, Dennis Kaarsemaker wrote: \n> It used to be for a brief period in history, between daa22c6f8d (2.1.0)\n> and 1f32ecf (2.2.2).\nAh thanks,... I have 2.1.4 which explains this :)\n\n\nCheers,\nChris.\n"},{"id":"256532","messageId":"xmqqoaoktq2q.fsf@gitster.dls.corp.google.com","threadId":"38621","inReplyTo":"1424679663.30155.30.camel@kaarsemaker.net","subject":"Re: [cosmetic bug?] needlessly(?) executable files","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-02-23T18:55:57Z","receivedAt":"2015-02-23T18:55:57Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:\n\n> On zo, 2015-02-22 at 10:44 -0800, Junio C Hamano wrote:\n>> Christoph Anton Mitterer <calestyo@scientia.net> writes:\n>> \n>> > Just a question about files like:\n>> > .git/config\n>> > .git/hooks/*.sample\n>> >\n>> > Is there any reason that these are created executable? Especially\n>> the\n>> > config file?\n>> \n>> In a new repository I just did \"git init\", I see this:\n>> \n>>     $ rm -fr stupid\n>>     $ umask 0027\n>>     $ git init stupid\n>>     $ ls -l stupid/.git/config | sed -e 's/ .*//'\n>>     -rw-r-----\n>> \n>> So no, config is not created executable.\n>\n> It used to be for a brief period in history, between daa22c6f8d (2.1.0)\n> and 1f32ecf (2.2.2).\n\nAhh, yes, I think we fixed that bug not too long ago.\n\nThanks for reminding me.\n"}]}