mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Merge pull request #721 from faissaloux/fix-dirty-files-filter
[2.x] Fix `--dirty` not working on Windows
This commit is contained in:
@ -32,6 +32,7 @@ final class GitDirtyTestCaseFilter implements TestCaseFilter
|
||||
assert(is_array($this->changedFiles));
|
||||
|
||||
$relativePath = str_replace($this->projectRoot, '', $testCaseFilename);
|
||||
$relativePath = str_replace(DIRECTORY_SEPARATOR, '/', $relativePath);
|
||||
|
||||
if (str_starts_with($relativePath, '/')) {
|
||||
$relativePath = substr($relativePath, 1);
|
||||
|
||||
Reference in New Issue
Block a user