From 877f6eb31bc75bc1b5bffb38a1b603874bfae451 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sat, 10 Mar 2012 20:30:14 +0530 Subject: [PATCH] catch older gitolite.rc and die gracefully --- src/Gitolite/Rc.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gitolite/Rc.pm b/src/Gitolite/Rc.pm index 0b81bf8..7ed5cef 100644 --- a/src/Gitolite/Rc.pm +++ b/src/Gitolite/Rc.pm @@ -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;