make gitolite "support" configurable

This commit is contained in:
clime 2017-03-03 11:26:04 +01:00
parent 6c240e12a2
commit 77282abfab
2 changed files with 4 additions and 1 deletions

View file

@ -2,3 +2,4 @@
git_author = Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
cache_dir = /var/lib/dist-git/cache
gitroot_dir = /var/lib/dist-git/git
gitolite = True

View file

@ -95,7 +95,9 @@ git push -q origin master
popd >/dev/null
# Place the gitolite update hook in place since we're not using our own
ln -s /etc/gitolite/hooks/common/update $REPODIR/$PACKAGE.git/hooks/update
if [[ $gitolite && $gitolite != "False" ]]; then
ln -s /etc/gitolite/hooks/common/update $REPODIR/$PACKAGE.git/hooks/update
fi
# Setup our post-receive hooks
mkdir -p $REPODIR/$PACKAGE.git/hooks/post-receive-chained.d