Fixed issue 286, repository size fails on symlinks.

This commit is contained in:
Loic d'Anterroches
2009-09-21 09:58:29 +02:00
parent 9d9541ee11
commit 25d7a5a776
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class IDF_Scm_Git extends IDF_Scm
public function getRepositorySize()
{
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk '
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
.escapeshellarg($this->repo);
$out = split(' ', shell_exec($cmd), 2);
return (int) $out[0]*1024;