*** empty log message ***
diff --git a/commits/common/git-commits.inc b/commits/common/git-commits.inc
index 7120775..eec912f 100644
--- a/commits/common/git-commits.inc
+++ b/commits/common/git-commits.inc
@@ -12,11 +12,9 @@
require_once dirname(__FILE__) . '/git-functions.inc';
class GitCommitProcessor extends GitLogProcessor {
- var $repo;
var $record;
- function __construct($repo) {
- $this->repo = $repo;
+ function __construct() {
}
function startCommit($ref) {
@@ -28,7 +26,7 @@
}
function file($ref, $filename, $filetype, $size) {
- $this->record['files'][$ref][] = array(
+ $this->record['files'][] = array(
'name' => $filename,
'type' => $filetype,
'size' => $size
@@ -47,7 +45,7 @@
$year = date('Y', $this->record['date']);
$yearmonth = date('Ym', $this->record['date']);
$yearmonthday = date('Ymd', $this->record['date']);
- $date = date("Y/m/d", $date);
+ $date = date("Y/m/d", $this->record['date']);
$top = $this->record['top'];
$project = $this->record['project'];
@@ -55,7 +53,7 @@
$company = getCommitterCompany($this->record['committer']);
if (!$company) $company = 'unknown';
- foreach($this->record['files'] as $commit => $file) {
+ foreach($this->record['files'] as $file) {
$filename = $file['name'];
$filetype = $file['type'];
$change_size = $file['size'];