From fb3cbf2b54e3fc9ae806ed678bc039f6836a3317 Mon Sep 17 00:00:00 2001 From: Tomasz Pasternak Date: Fri, 11 Oct 2024 22:41:06 +0400 Subject: [PATCH] fix(querysync): affected packages calculator was broken when 'directories' contained '.' --- .../com/google/idea/blaze/qsync/AffectedPackagesCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/querysync/java/com/google/idea/blaze/qsync/AffectedPackagesCalculator.java b/querysync/java/com/google/idea/blaze/qsync/AffectedPackagesCalculator.java index 7952fa1a049..9b69bcf660a 100644 --- a/querysync/java/com/google/idea/blaze/qsync/AffectedPackagesCalculator.java +++ b/querysync/java/com/google/idea/blaze/qsync/AffectedPackagesCalculator.java @@ -235,7 +235,7 @@ public AffectedPackages getAffectedPackages() { private boolean isIncludedInProject(Path file) { for (Path includePath : projectIncludes()) { - if (file.startsWith(includePath)) { + if (file.startsWith(includePath) || includePath.toString().isEmpty()) { for (Path excludePath : projectExcludes()) { if (file.startsWith(excludePath)) { return false;