install.pl, pta hook, upgrade doc:

- install the post-update hook also
  - fix bashism in pta-hook

Also, since delegation works best with PTA, reflect that in the upgrade doc
This commit is contained in:
Sitaram Chamarty 2009-10-05 16:08:10 +05:30
parent 3c960aa5e1
commit 8096cc8e9c
3 changed files with 11 additions and 1 deletions

View file

@ -35,6 +35,9 @@ have to do it at a "quiet" time or something.
src/gl-compile-conf
(if you've already setup "push-to-admin", this step should be replaced by
a "git push". Make a dummy commit if needed, to make the push happen).
And you're done.
### upgrade notes for specific versions

View file

@ -64,3 +64,9 @@ for my $repo (`find . -type d -name "*.git"`) {
system("cp $GL_ADMINDIR/src/update-hook.pl $repo/hooks/update");
chmod 0755, "$repo/hooks/update";
}
# oh and one of those repos is a bit more special and has an extra hook :)
system("cp $GL_ADMINDIR/src/pta-hook.sh gitolite-admin.git/hooks/post-update");
system("perl", "-i", "-p", "-e", "s(export GL_ADMINDIR=.*)(export GL_ADMINDIR=$GL_ADMINDIR)",
"gitolite-admin.git/hooks/post-update");
chmod 0755, "gitolite-admin.git/hooks/post-update";

View file

@ -16,7 +16,8 @@ mkdir $GL_ADMINDIR/conf/fragments
for br in $(git for-each-ref --format='%(refname:short)')
do
# skip master (duh!)
[[ $br == master ]] && continue
[ "$br" = "master" ] && continue
# all other branches *should* contain a file called <branchname>.conf
# inside conf/fragments; if so copy it
if git show $br:conf/fragments/$br.conf > /dev/null 2>&1