Christoph Anton Mitterer <[email protected]> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html