aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaramc@gmail.com>2018-11-22 18:20:26 +0530
committerSitaram Chamarty <sitaramc@gmail.com>2018-11-22 18:20:26 +0530
commit64aa53b7a569ac061da432d41d4157ec0986abbf (patch)
tree78cb4e52459e510eebcb779c021459031cd5c2c6
parentminor URL fixup (diff)
downloadgitolite-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-xcontrib/utils/testconf11
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