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;