Fixed not to stat the size of a non existing repository.

This commit is contained in:
Loic d'Anterroches 2009-10-26 21:45:42 +01:00
parent 9437a19ee0
commit 37aa3d8b69

View File

@ -43,6 +43,9 @@ class IDF_Scm_Git extends IDF_Scm
public function getRepositorySize()
{
if (!file_exists($this->repo)) {
return 0;
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = explode(' ', shell_exec($cmd), 2);