diff --git a/README.md b/README.md index f60fcaf..748f2e5 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/Git/Repository.php b/lib/Git/Repository.php index 1db38f3..c7f9544 100644 --- a/lib/Git/Repository.php +++ b/lib/Git/Repository.php @@ -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";