needlessly(?) executable files
Hey.
Just a question about files like:
.git/config
.git/hooks/*.sample
Is there any reason that these are created executable? Especially the config file?
I know the hooks are already disabled by being named .sample, but having them executable just increases the chance that one accidentally fires them up manually.
Cheers,
Chris.
Quoted 6 lines · Christoph Anton Mitterer
Just a question about files like:
.git/config
.git/hooks/*.sampleIs 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.
Quoted 1 line
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.
Quoted 12 lines · Junio C Hamano
Quoted 5 lines · Christoph Anton Mitterer
Just a question about files like:
.git/config
.git/hooks/*.sampleIs there any reason that these are created executable? Especially
the
Quoted 1 line
config file?
In a new repository I just did "git init", I see this:
Quoted 7 lines
$ 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.
It used to be for a brief period in history, between daa22c6f8d (2.1.0) and 1f32ecf (2.2.2).
Signature · 2 lines
Dennis Kaarsemaker http://www.kaarsemaker.net
Quoted 2 lines · Dennis Kaarsemaker
It used to be for a brief period in history, between
daa22c6f8d(2.1.0) and 1f32ecf (2.2.2).
Ah thanks,... I have 2.1.4 which explains this :)
Cheers,
Chris.
Quoted 19 lines · Dennis Kaarsemaker
Quoted 18 lines · Junio C Hamano
Quoted 5 lines · Christoph Anton Mitterer
Just a question about files like:
.git/config
.git/hooks/*.sampleIs there any reason that these are created executable? Especially
the
Quoted 1 line
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-----
Quoted 4 lines
Quoted 1 line
So no, config is not created executable.
It used to be for a brief period in history, between
daa22c6f8d(2.1.0) and 1f32ecf (2.2.2).
Ahh, yes, I think we fixed that bug not too long ago.
Thanks for reminding me.