all src: (please read full commit message): allow local admin-defined hooks
You can now add your own hooks into src/hooks/ and they get propagated along with the update hook that is present there now. Please read the new section in the admin document, and make sure you understand the security implications of accidentally fiddling with the "update" script. This also prompted a major rename spree of all the files to be consistent, etc. Plus people said that the .sh and .pl suffixes should be avoided (and I was feeling the same way). I've also been inconsistent with that "gl-" prefix, so I cleaned that up, and the 00- and 99- were also funny animals. Time to get all this cleaned up before we get 1.0 :) So these are the changes, in case you're looking at just the commit message and not the diffstat: src/pta-hook.sh -> src/ga-post-update-hook src/conf-convert.pl -> src/gl-conf-convert src/00-easy-install.sh -> src/gl-easy-install src/99-emergency-addkey.sh -> src/gl-emergency-addkey src/install.pl -> src/gl-install src/update-hook.pl -> src/hooks/update
This commit is contained in:
parent
3838be2b50
commit
c54d3eabbc
11 changed files with 58 additions and 26 deletions
|
@ -117,7 +117,7 @@ Here's how it all hangs together.
|
|||
~/.ssh/id_rsa.pub
|
||||
|
||||
* gitolite keypair; the "sitaram" in this is the 3rd argument to the
|
||||
`src/00-easy-install.sh` command you ran; the easy install script does the
|
||||
`src/gl-easy-install` command you ran; the easy install script does the
|
||||
rest
|
||||
|
||||
~/.ssh/sitaram
|
||||
|
@ -200,7 +200,7 @@ that should have enough info to get you going (but it helps to know ssh well):
|
|||
cp id_rsa sitaram
|
||||
cp id_rsa.pub sitaram.pub
|
||||
cd ~/gitolite-clone
|
||||
src/00-easy-install.sh -q git my.git.server sitaram
|
||||
src/gl-easy-install -q git my.git.server sitaram
|
||||
|
||||
that last command produces something like the following:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue