Added the post-update hook at the creation of the git repository.

This commit is contained in:
Loic d'Anterroches
2010-04-14 13:31:30 +02:00
parent e5ee6d8fca
commit bbc29c889f
4 changed files with 29 additions and 5 deletions

View File

@@ -393,11 +393,11 @@ class IDF_Scm
* Sync the changes in the repository with the timeline.
*
*/
public static function syncTimeline($project)
public static function syncTimeline($project, $force=false)
{
$cache = Pluf_Cache::factory();
$key = 'IDF_Scm:'.$project->shortname.':lastsync';
if (null === ($res=$cache->get($key))) {
if ($force or null === ($res=$cache->get($key))) {
$scm = IDF_Scm::get($project);
if ($scm->isAvailable()) {
foreach ($scm->getChangeLog($scm->getMainBranch(), 25) as $change) {