docs and .gitattributes hadn't been updated for the change in hooks dir
This commit is contained in:
parent
4b7d144971
commit
b3945d44c9
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,3 +1,4 @@
|
||||||
conf/* crlf=input
|
conf/* crlf=input
|
||||||
src/* crlf=input
|
src/* crlf=input
|
||||||
src/hooks/* crlf=input
|
hooks/common/* crlf=input
|
||||||
|
hooks/gitolite-admin/* crlf=input
|
||||||
|
|
|
@ -253,8 +253,8 @@ gitolite "Sitaram Chamarty" = "fast, secure, access control for git in a corpora
|
||||||
# syntax:
|
# syntax:
|
||||||
# config sectionname.keyname = [optional value_string]
|
# config sectionname.keyname = [optional value_string]
|
||||||
|
|
||||||
# example usage: if you placed a hook in src/hooks that requires configuration
|
# example usage: if you placed a hook in hooks/common that requires
|
||||||
# information that is specific to each repo, you could do this:
|
# configuration information that is specific to each repo, you could do this:
|
||||||
|
|
||||||
repo gitolite
|
repo gitolite
|
||||||
config hooks.mailinglist = gitolite-commits@example.tld
|
config hooks.mailinglist = gitolite-commits@example.tld
|
||||||
|
|
|
@ -99,15 +99,15 @@ for the special usernames or remove the description line.
|
||||||
#### custom hooks
|
#### custom hooks
|
||||||
|
|
||||||
If you want to put in your own, custom, hooks every time a new repo is created
|
If you want to put in your own, custom, hooks every time a new repo is created
|
||||||
by gitolite, put a **tested** hook script in `src/hooks`. As distributed, the
|
by gitolite, put a **tested** hook script in `hooks/common` of your gitolite
|
||||||
only file there is the `update` hook, but everything (*everything*) in that
|
clone before running easy-install. As distributed, there are only two files
|
||||||
directory will get copied to the `hooks/` subdirectory of every *new* repo
|
there, but everything (*everything*) in that directory will get copied to the
|
||||||
created.
|
`hooks/` subdirectory of every *new* repo created.
|
||||||
|
|
||||||
In order to push a new or updated hook script to *existing* repos as well,
|
In order to push a new or updated hook script to *existing* repos as well,
|
||||||
just run easy install once again; it'll do it to existing repos also.
|
just run easy install once again; it'll do it to existing repos also.
|
||||||
|
|
||||||
**VERY IMPORTANT SECURITY NOTE: the `update` hook in `src/hooks` is what
|
**VERY IMPORTANT SECURITY NOTE: the `update` hook in `hooks/common` is what
|
||||||
implements all the branch-level permissions in gitolite. If you fiddle with
|
implements all the branch-level permissions in gitolite. If you fiddle with
|
||||||
the hooks directory, please make sure you do not mess with this file
|
the hooks directory, please make sure you do not mess with this file
|
||||||
accidentally, or all your fancy per-branch permissions will stop working.**
|
accidentally, or all your fancy per-branch permissions will stop working.**
|
||||||
|
|
Loading…
Reference in a new issue