aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/policy/config/policy-csit.conf
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/policy/config/policy-csit.conf')
-rw-r--r--scripts/policy/config/policy-csit.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/policy/config/policy-csit.conf b/scripts/policy/config/policy-csit.conf
index 1858698a..95c14504 100644
--- a/scripts/policy/config/policy-csit.conf
+++ b/scripts/policy/config/policy-csit.conf
@@ -1,3 +1,7 @@
-GERRIT_BRANCH=master
POLICY_MARIADB_VER=10.2.25
NEXUS_URL=https://nexus.onap.org/content/repositories/snapshots
+
+GIT_TOP=$(git rev-parse --show-toplevel)
+GERRIT_BRANCH=$(awk -F= '$1 == "defaultbranch" { print $2 }' \
+ "${GIT_TOP}"/.gitreview)
+echo GERRIT_BRANCH=${GERRIT_BRANCH}