diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 346e049..5d3b861 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -61,7 +61,7 @@ $UNSAFE_PATT = qr([`~#\$\&()|;<>]); my $current_data_version = "3.0"; my $rc = glrc('filename'); -if (-r $rc) { +if (-r $rc and -s $rc) { do $rc or die $@; } if ( defined($GL_ADMINDIR) ) {