aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/index.php b/scripts/index.php
index 4b529d1..5da912e 100644
--- a/scripts/index.php
+++ b/scripts/index.php
@@ -37,6 +37,8 @@ $rs = new Repositories();
list($repos, $count) = $rs->getList(0, 10000);
foreach ($repos as $repo) {
echo 'Indexing ' . $repo->id . "\n";
- $idx->addRepo($repo, filectime($repo->gitDir));
+ $commits = $repo->getHistory();
+ $first = count($commits)-1;
+ $idx->addRepo($repo, $commits[$first]->committerTime, $commits[0]->committerTime);
}
?>