catch older gitolite.rc and die gracefully

This commit is contained in:
Sitaram Chamarty 2012-03-10 20:30:14 +05:30
parent a9d5adcd10
commit 877f6eb31b

View file

@ -48,6 +48,7 @@ my $current_data_version = "3.0";
my $rc = glrc('filename');
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
@rc{ keys %RC } = values %RC;