X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/8d29b8e073c9a3795ad7ededf4cb5e8683102162..f88c38723e3c807769627aff2866fc3cf5c8472f:/src/phorkie/Repository/Post.php diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index fe6858b..0860cad 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -134,6 +134,7 @@ class Repository_Post $vc->getCommand('commit') ->setOption('message', '') ->setOption('allow-empty-message') + ->setOption('no-edit') ->setOption( 'author', $sessionData['name'] . ' <' . $sessionData['email'] . '>' @@ -153,10 +154,18 @@ class Repository_Post //FIXME: index changed files only //also handle file deletions $db = new Database(); + $not = new Notificator(); if ($bNew) { $db->getIndexer()->addRepo($this->repo); + $not->create($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 + ); + $not->edit($this->repo); } }