From 39d4a24b45840b5fd358b1f02c08bebcbc5c594a Mon Sep 17 00:00:00 2001 From: Peter Droogmans Date: Sat, 14 Jul 2012 09:10:56 +0200 Subject: [PATCH] stats fixed, using getHead now --- lib/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');