From 0f617f8e0904a382360705a4e906ba5ab9c2200f Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Mon, 19 Apr 2010 09:16:56 +0200 Subject: [PATCH] Fixed to directly use a PHP internal function, thanks piouPiouM. --- src/IDF/Plugin/SyncGit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Plugin/SyncGit.php b/src/IDF/Plugin/SyncGit.php index 77bc06f..dfb5559 100644 --- a/src/IDF/Plugin/SyncGit.php +++ b/src/IDF/Plugin/SyncGit.php @@ -66,7 +66,7 @@ class IDF_Plugin_SyncGit static public function postUpdate($signal, &$params) { // Chop the ".git" and get what is left - $pname = basename(substr($params['git_dir'], 0, -4)); + $pname = basename($params['git_dir'], '.git'); try { $project = IDF_Project::getOr404($pname); } catch (Pluf_HTTP_Error404 $e) {