Skip to content

Commit

Permalink
Merge pull request #721 from faissaloux/fix-dirty-files-filter
Browse files Browse the repository at this point in the history
[2.x] Fix `--dirty` not working on Windows
  • Loading branch information
nunomaduro committed Mar 22, 2023
2 parents 8b42835 + b94b8c6 commit a320cc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TestCaseFilters/GitDirtyTestCaseFilter.php
Expand Up @@ -32,6 +32,7 @@ public function accept(string $testCaseFilename): bool
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);
Expand Down

0 comments on commit a320cc3

Please sign in to comment.