Skip to content
Snippets Groups Projects

Issue #3365151: CollectPathsToExcludeEvent needs to exclude paths relative to the project root prefixed with './' so they are not ambiguous to rsync

Merged Issue #3365151: CollectPathsToExcludeEvent needs to exclude paths relative to the project root prefixed with './' so they are not ambiguous to rsync
@@ -104,10 +104,9 @@ final class CollectPathsToExcludeEvent extends StageEvent implements PathListInt
// Make absolute paths relative to the project root, prefixed with `./`
// so that they're totally unambiguous. A path like
// `/path/to/project/file.php` should become `./file.php`.
// `/path/to/project/file.php` should become `/file.php`.
$path = str_replace($project_root, '', $path);
$path = ltrim($path, '/');
$this->add(["./$path"]);
$this->add([$path]);
}
}
Loading