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

@@ -37,7 +37,7 @@ You can also see a live demo [here](http://git.gofedora.com).
## Requirements
In order to run GitList on your server, you'll need:
* git 1.7.6 or higher
* git
* Apache and mod_rewrite enabled
* PHP 5.3.3

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";