1 parent e35acf3 commit 2fc4165Copy full SHA for 2fc4165
1 file changed
src/main/java/com/dtsx/docs/core/planner/TestPlanBuilder.java
@@ -171,9 +171,14 @@ private static Predicate<Path> buildGitignorePredicate(Path rootFolder) {
171
line = line + "**";
172
}
173
174
- if (!line.startsWith("/")) {
+ // Convert patterns like **/obj/* to **/obj/** to match all descendants
175
+ if (line.endsWith("/*")) {
176
+ line = line.substring(0, line.length() - 1) + "**";
177
+ }
178
+
179
+ if (!line.startsWith("/") && !line.startsWith("**/")) {
180
line = "**/" + line;
- } else {
181
+ } else if (line.startsWith("/")) {
182
line = line.substring(1);
183
184
0 commit comments