Skip to content

Commit

Permalink
(duh!) report rc file syntax errors
Browse files Browse the repository at this point in the history
the "duh!" is because I should have done this long ago...
  • Loading branch information
sitaramc committed Jun 21, 2012
1 parent a454111 commit 6218156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Gitolite/Rc.pm
Expand Up @@ -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)";
Expand Down

0 comments on commit 6218156

Please sign in to comment.