From: Junio C Hamano Date: Sun, 22 Feb 2015 18:44:12 GMT Subject: Re: [cosmetic bug?] needlessly(?) executable files Message-ID: In-Reply-To: <1424540917.15539.24.camel@scientia.net> Christoph Anton Mitterer writes: > Just a question about files like: > .git/config > .git/hooks/*.sample > > Is there any reason that these are created executable? Especially the > config file? In a new repository I just did "git init", I see this: $ rm -fr stupid $ umask 0027 $ git init stupid $ ls -l stupid/.git/config | sed -e 's/ .*//' -rw-r----- So no, config is not created executable. > I know the hooks are already disabled by being named .sample, I think that is deliberate, so that lazy people can just do: $ mv .git/hooks/pre-commit.sample .git/hooks/pre-commit without one more command $ chmod +x .git/hooks/pre-commit after doing so.