Code Review
/
integration
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Default CSIT to master branch
[integration/csit.git]
/
scripts
/
policy
/
config
/
policy-csit.conf
diff --git
a/scripts/policy/config/policy-csit.conf
b/scripts/policy/config/policy-csit.conf
index
1858698
..
95c1450
100644
(file)
--- 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
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}