Fixed issue 286, repository size fails on symlinks.
This commit is contained in:
@@ -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 -sk '
|
||||
$cmd = Pluf::f('idf_exec_cmd_prefix', '').'du -skD '
|
||||
.escapeshellarg(substr($this->repo, 7));
|
||||
$out = split(' ', shell_exec($cmd), 2);
|
||||
return (int) $out[0]*1024;
|
||||
|
Reference in New Issue
Block a user