3522087591
In the "create new repos" loop, we need an absolute value for REPO_BASE, in order to be able to chdir back and forth. But (taking the "normal user with no privileges" assumption too far!) we assumed REPO_BASE would be within $HOME, and relative to it. So it fails when someone wants the repo_base elsewhere. Now we don't prefix $HOME if REPO_BASE is already absolute (begins with a "/") bug reported by evocallaghan
21 lines
619 B
Plaintext
21 lines
619 B
Plaintext
# this is meant to be pulled into a perl program using "do"
|
|
|
|
# base directory for all the repos (absolute, or relative to $HOME)
|
|
$REPO_BASE="repositories";
|
|
|
|
# gitolite admin directory, files, etc
|
|
$GL_ADMINDIR=$ENV{HOME} . "/.gitolite";
|
|
|
|
# --------------------------------------
|
|
|
|
# the ones below can be left as they are, unless for some reason you want them
|
|
# elsewhere
|
|
|
|
$GL_CONF="$GL_ADMINDIR/conf/gitolite.conf";
|
|
$GL_KEYDIR="$GL_ADMINDIR/keydir";
|
|
$GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm";
|
|
|
|
# --------------------------------------
|
|
# this should be the last line in this file, per perl rules
|
|
1;
|