Dropped --count on rev-list in order to improve compatibility, using wc -l. Fixes #31

This commit is contained in:
Klaus Silveira
2012-06-07 01:46:02 -03:00
parent ec85e90e84
commit fbd79f256b
2 changed files with 2 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ class Repository
*/
public function getTotalCommits($file = null)
{
$command = "rev-list --all --count";
$command = "rev-list --all | wc -l";
if ($file) {
$command .= " $file";