Skip to content

Commit

Permalink
testconf: allow picking up a custom rc file if available
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaramc committed Nov 22, 2018
1 parent bab5a30 commit 64aa53b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/utils/testconf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 64aa53b

Please sign in to comment.