Skip to content

Commit

Permalink
Force to check the full path of the libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed May 14, 2020
1 parent ccdca17 commit 5a9fad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Util/GitUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a9fad6

Please sign in to comment.