mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +01:00
Fixing wc -l implementation on getTotalCommits
This commit is contained in:
@@ -224,12 +224,14 @@ class Repository
|
||||
*/
|
||||
public function getTotalCommits($file = null)
|
||||
{
|
||||
$command = "rev-list --all | wc -l";
|
||||
$command = "rev-list --all";
|
||||
|
||||
if ($file) {
|
||||
$command .= " $file";
|
||||
}
|
||||
|
||||
$command .= " | wc -l";
|
||||
|
||||
$commits = $this->getClient()->run($this, $command);
|
||||
return $commits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user