Skip to content

Commit 1b14738

Browse files
committed
fix: Use only valid Path strings
1 parent 2a87d3d commit 1b14738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeowners-validator/src/main/java/nl/basjes/codeowners/validator/CodeOwnersValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public DirectoryOwners analyzeDirectory(
291291

292292
Path newFile = Path.of( path.toString(), UNLIKELY_FILENAME);
293293
if (gitIgnores.keepFile(newFile.toString())) {
294-
Path newFileIndex = Path.of( path.toString(), "*");
294+
Path newFileIndex = Path.of( path.toString(), "x");
295295
FileOwners newFileOwners = new FileOwners(newFileIndex, FileType.NEWLY_CREATED_FILE);
296296
newFileOwners.addApprovers(codeOwners.getAllApprovers(newFile.toString()));
297297
newFileOwners.addMandatoryApprovers(codeOwners.getMandatoryApprovers(newFile.toString()));

0 commit comments

Comments
 (0)