aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/phorkie/Repository/Post.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php
index fe6858b..408cb00 100644
--- a/src/phorkie/Repository/Post.php
+++ b/src/phorkie/Repository/Post.php
@@ -156,7 +156,12 @@ class Repository_Post
if ($bNew) {
$db->getIndexer()->addRepo($this->repo);
} else {
- $db->getIndexer()->updateRepo($this->repo);
+ $commits = $this->repo->getHistory();
+ $db->getIndexer()->updateRepo(
+ $this->repo,
+ $commits[count($commits)-1]->committerTime,
+ $commits[0]->committerTime
+ );
}
}