From 621815611cbb1d6245b035682c42270dfa8d6d06 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 21 Jun 2012 06:49:18 +0530 Subject: [PATCH] (duh!) report rc file syntax errors the "duh!" is because I should have done this long ago... --- src/lib/Gitolite/Rc.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 8f8fe7b..23ed421 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -61,7 +61,9 @@ $UNSAFE_PATT = qr([`~#\$\&()|;<>]); my $current_data_version = "3.0"; my $rc = glrc('filename'); -do $rc if -r $rc; +if (-r $rc) { + do $rc or die $@; +} if ( defined($GL_ADMINDIR) ) { say2 ""; say2 "FATAL: '$rc' seems to be for older gitolite; please see doc/g2migr.mkd\n" . "(online at http://sitaramc.github.com/gitolite/g2migr.html)";