aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-12-15 15:20:40 +0100
committersonartech <sonartech@sonarsource.com>2022-12-15 20:03:33 +0000
commitf0582195b40b656b525d7d0df55120f899b21693 (patch)
tree17732b64859daa336fe7924e9fa1e759512afec2 /server/sonar-server-common
parentfc7657598b9f46a99cb21dc891f75ad20c8a8528 (diff)
downloadsonarqube-f0582195b40b656b525d7d0df55120f899b21693.tar.gz
sonarqube-f0582195b40b656b525d7d0df55120f899b21693.zip
SONAR-17613 changing default branch for applications to follow the setting
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/project/DefaultBranchNameResolver.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/project/DefaultBranchNameResolver.java b/server/sonar-server-common/src/main/java/org/sonar/server/project/DefaultBranchNameResolver.java
index bd93736002b..586aecb6079 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/project/DefaultBranchNameResolver.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/project/DefaultBranchNameResolver.java
@@ -22,7 +22,7 @@ package org.sonar.server.project;
import org.sonar.api.config.Configuration;
import static org.sonar.core.config.CorePropertyDefinitions.SONAR_PROJECTCREATION_MAINBRANCHNAME;
-import static org.sonar.db.component.BranchDto.DEFAULT_PROJECT_MAIN_BRANCH_NAME;
+import static org.sonar.db.component.BranchDto.DEFAULT_MAIN_BRANCH_NAME;
public class DefaultBranchNameResolver {
@@ -33,6 +33,6 @@ public class DefaultBranchNameResolver {
}
public String getEffectiveMainBranchName() {
- return configuration.get(SONAR_PROJECTCREATION_MAINBRANCHNAME).orElse(DEFAULT_PROJECT_MAIN_BRANCH_NAME);
+ return configuration.get(SONAR_PROJECTCREATION_MAINBRANCHNAME).orElse(DEFAULT_MAIN_BRANCH_NAME);
}
}