From 5a9fad68afafe0b72f3a6270e1a297ae01df030f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Thu, 14 May 2020 09:40:05 +0200 Subject: [PATCH] Force to check the full path of the libraries --- src/Util/GitUtil.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Util/GitUtil.php b/src/Util/GitUtil.php index aa3f58b..47d0b6e 100644 --- a/src/Util/GitUtil.php +++ b/src/Util/GitUtil.php @@ -124,7 +124,9 @@ public static function getLibraries(array $libraries, string $branch, int $depth foreach ($files as $file) { foreach ($libraryPaths as $libraryPath) { - if (0 === strpos($file, $libraryPath)) { + $libraryPath = rtrim($libraryPath, '/'); + + if (0 === strpos($file, $libraryPath.'/')) { $paths[] = $libraryPath; break;