diff options
author | Sitaram Chamarty <sitaramc@gmail.com> | 2018-11-22 18:20:26 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaramc@gmail.com> | 2018-11-22 18:20:26 +0530 |
commit | 64aa53b7a569ac061da432d41d4157ec0986abbf (patch) | |
tree | 78cb4e52459e510eebcb779c021459031cd5c2c6 | |
parent | minor URL fixup (diff) | |
download | gitolite-gentoo-64aa53b7a569ac061da432d41d4157ec0986abbf.tar.gz gitolite-gentoo-64aa53b7a569ac061da432d41d4157ec0986abbf.tar.bz2 gitolite-gentoo-64aa53b7a569ac061da432d41d4157ec0986abbf.zip |
testconf: allow picking up a custom rc file if available
-rwxr-xr-x | contrib/utils/testconf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/utils/testconf b/contrib/utils/testconf index 5fa9194..03580f9 100755 --- a/contrib/utils/testconf +++ b/contrib/utils/testconf @@ -72,6 +72,14 @@ # which will give you a much nicer output. The only issue is if you have # include files, you will need to put that in the file whose name is sorted # first! +# +# Using a non-default ".gitolite.rc" +# ================================== +# +# If your conf needs a non-default `~/.gitolite.rc`, copy the file you need as +# "testconf.gitolite.rc" in the root directory of the gitolite-admin clone +# where you are running "testconf". (Whether you commit this file to the +# gitolite-admin repo, or keep it local/untracked, is your call). # ---------------------------------------------------------------------- od=$PWD @@ -106,6 +114,9 @@ rm -rf $testconf/.gitolite/conf mkdir -p $testconf/.gitolite/conf cp -a $od/conf/* $testconf/.gitolite/conf/ +# copy rc from $od, if it exists +[ -f $od/testconf.gitolite.rc ] && cp $od/testconf.gitolite.rc $testconf/.gitolite.rc + # compile+ gitolite compile |