diff --git a/lib/Git/Repository.php b/lib/Git/Repository.php index 4b297c0..d780564 100644 --- a/lib/Git/Repository.php +++ b/lib/Git/Repository.php @@ -388,7 +388,7 @@ class Repository public function getAuthorStatistics() { - $logs = $this->getClient()->run($this, 'log --pretty=format:\'%an||%ae\''); + $logs = $this->getClient()->run($this, 'log --pretty=format:\'%an||%ae\' ' . $this->getHead()); if (empty($logs)) { throw new \RuntimeException('No statistics available');