diff --git a/src/IDF/Scm/Git.php b/src/IDF/Scm/Git.php index 8dc1bbd..3ae4944 100644 --- a/src/IDF/Scm/Git.php +++ b/src/IDF/Scm/Git.php @@ -46,7 +46,7 @@ class IDF_Scm_Git extends IDF_Scm if (!file_exists($this->repo)) { return 0; } - $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD ' + $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk ' .escapeshellarg($this->repo); $out = explode(' ', self::shell_exec('IDF_Scm_Git::getRepositorySize', $cmd), diff --git a/src/IDF/Scm/Mercurial.php b/src/IDF/Scm/Mercurial.php index 7ad6eda..f0ef715 100644 --- a/src/IDF/Scm/Mercurial.php +++ b/src/IDF/Scm/Mercurial.php @@ -35,7 +35,7 @@ class IDF_Scm_Mercurial extends IDF_Scm public function getRepositorySize() { - $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD ' + $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk ' .escapeshellarg($this->repo); $out = explode(' ', self::shell_exec('IDF_Scm_Mercurial::getRepositorySize', diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 8ee621d..fbdcb4b 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -56,7 +56,7 @@ class IDF_Scm_Svn extends IDF_Scm if (strpos($this->repo, 'file://') !== 0) { return -1; } - $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD ' + $cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -sk ' .escapeshellarg(substr($this->repo, 7)); $out = explode(' ', self::shell_exec('IDF_Scm_Svn::getRepositorySize', $cmd), 2); return (int) $out[0]*1024;