Fixed to directly use a PHP internal function, thanks piouPiouM.

This commit is contained in:
Loic d'Anterroches 2010-04-19 09:16:56 +02:00
parent fbc1fab68d
commit 0f617f8e09

View File

@ -66,7 +66,7 @@ class IDF_Plugin_SyncGit
static public function postUpdate($signal, &$params) static public function postUpdate($signal, &$params)
{ {
// Chop the ".git" and get what is left // Chop the ".git" and get what is left
$pname = basename(substr($params['git_dir'], 0, -4)); $pname = basename($params['git_dir'], '.git');
try { try {
$project = IDF_Project::getOr404($pname); $project = IDF_Project::getOr404($pname);
} catch (Pluf_HTTP_Error404 $e) { } catch (Pluf_HTTP_Error404 $e) {