diff --git a/indefero/src/IDF/Scm/Mercurial.php b/indefero/src/IDF/Scm/Mercurial.php index 484f3a2..79f7f4d 100644 --- a/indefero/src/IDF/Scm/Mercurial.php +++ b/indefero/src/IDF/Scm/Mercurial.php @@ -248,7 +248,7 @@ class IDF_Scm_Mercurial extends IDF_Scm continue; } if ($folder) { - preg_match('|^'.$folder.'[/]?([^/]+)?$|', $file,$match); + preg_match('|^'.$folder.'[/]([^/]+)?$|', $file,$match); if (count($match) > 1) { $file = $match[1]; } else {