Re: [cosmetic bug?] needlessly(?) executable files
Christoph Anton Mitterer <calestyo@scientia.net> writes:
Show 6 quoted lines
> 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.