From 90d646c92cd4ef781eafec64b91848060cda0847 Mon Sep 17 00:00:00 2001 From: Mustafa Ozhan Date: Sun, 17 Oct 2021 21:01:37 +0200 Subject: [PATCH] isMaster method trim fix --- buildSrc/src/main/kotlin/ProjectSettings.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/ProjectSettings.kt b/buildSrc/src/main/kotlin/ProjectSettings.kt index 54c9f96e00..81463461db 100644 --- a/buildSrc/src/main/kotlin/ProjectSettings.kt +++ b/buildSrc/src/main/kotlin/ProjectSettings.kt @@ -43,6 +43,6 @@ object ProjectSettings { commandLine = "git rev-parse --abbrev-ref HEAD".split(" ") standardOutput = os } - return String(os.toByteArray()) == "master" + return String(os.toByteArray()).trim() == "master" } }