catch older gitolite.rc and die gracefully
This commit is contained in:
parent
a9d5adcd10
commit
877f6eb31b
|
@ -48,6 +48,7 @@ my $current_data_version = "3.0";
|
||||||
|
|
||||||
my $rc = glrc('filename');
|
my $rc = glrc('filename');
|
||||||
do $rc if -r $rc;
|
do $rc if -r $rc;
|
||||||
|
_die "$rc seems to be for older gitolite" if defined($GL_ADMINDIR);
|
||||||
# let values specified in rc file override our internal ones
|
# let values specified in rc file override our internal ones
|
||||||
@rc{ keys %RC } = values %RC;
|
@rc{ keys %RC } = values %RC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue