one more slurp

see 9ad7ea4 -- "(minor) some changes to system(), ``, etc."
This commit is contained in:
Sitaram Chamarty 2011-03-12 04:18:53 +05:30
parent b7944ed4d1
commit 3677bc5a4d

View file

@ -770,7 +770,7 @@ sub check_repo_write_enabled {
my ($repo) = shift;
for my $d ("$ENV{HOME}/.gitolite.down", "$ENV{GL_REPO_BASE_ABS}/$repo.git/.gitolite.down") {
next unless -f $d;
die $ABRT . `cat $d` if -s $d;
die $ABRT . slurp($d) if -s $d;
die $ABRT . "writes are currently disabled\n";
}
}