mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Dropped --count on rev-list in order to improve compatibility, using wc -l. Fixes #31
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user