mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Dropped --count on rev-list in order to improve compatibility, using wc -l. Fixes #31
This commit is contained in:
@@ -37,7 +37,7 @@ You can also see a live demo [here](http://git.gofedora.com).
|
|||||||
## Requirements
|
## Requirements
|
||||||
In order to run GitList on your server, you'll need:
|
In order to run GitList on your server, you'll need:
|
||||||
|
|
||||||
* git 1.7.6 or higher
|
* git
|
||||||
* Apache and mod_rewrite enabled
|
* Apache and mod_rewrite enabled
|
||||||
* PHP 5.3.3
|
* PHP 5.3.3
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ class Repository
|
|||||||
*/
|
*/
|
||||||
public function getTotalCommits($file = null)
|
public function getTotalCommits($file = null)
|
||||||
{
|
{
|
||||||
$command = "rev-list --all --count";
|
$command = "rev-list --all | wc -l";
|
||||||
|
|
||||||
if ($file) {
|
if ($file) {
|
||||||
$command .= " $file";
|
$command .= " $file";
|
||||||
|
|||||||
Reference in New Issue
Block a user