From bfa763f07ca526422ec7fe71c2fa630fb3c0e9f6 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Mon, 29 Sep 2025 17:09:48 +0200 Subject: [PATCH] [kotlin] project-model-updater: improve repo community handling ^KTIJ-35777 GitOrigin-RevId: 2b05d893448708934873b16a65e2c387e18211bb --- .../src/org/jetbrains/tools/model/updater/Main.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/kotlin/util/project-model-updater/src/org/jetbrains/tools/model/updater/Main.kt b/plugins/kotlin/util/project-model-updater/src/org/jetbrains/tools/model/updater/Main.kt index ed403bf1e731..61d4f6e80736 100644 --- a/plugins/kotlin/util/project-model-updater/src/org/jetbrains/tools/model/updater/Main.kt +++ b/plugins/kotlin/util/project-model-updater/src/org/jetbrains/tools/model/updater/Main.kt @@ -67,7 +67,8 @@ fun main(args: Array) { } val monorepoRoot = communityRoot.parent.takeIf { - it.resolve(".idea").isDirectory() + // The community name check is required since the community might be placed directly inside another repo (e.g., kotlin) + it.resolve(".idea").isDirectory() && it.resolve("community").isDirectory() } val resolverSettings = readJpsResolverSettings(communityRoot, monorepoRoot)