git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatically focus OpenID field on login page
[phorkie.git]
/
scripts
/
index.php
diff --git
a/scripts/index.php
b/scripts/index.php
index 4b529d1c7ee10b54997405f96c29fa5a02604145..5da912e2aa9750faceaa004c20841cb5847feceb 100644
(file)
--- 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";
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);
}
?>
}
?>