Skip to content

Commit a9fc61f

Browse files
committed
Set git config http.sslVerify=false
Currently there is no possibility to clone Horizon repository from GitLab because of SSL certificate problem.
1 parent e96da1d commit a9fc61f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

container-images/tcib/base/os/horizontest/run_horizontest.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,18 @@ function delete_custom_resources {
127127
}
128128

129129
pushd ${HORIZONTEST_DIR}
130-
git clone ${REPO_URL} ${HORIZONTEST_DIR}/horizon
130+
if [[ ${REPO_URL} == *redhat.com* ]]; then
131+
git -c http.sslVerify=false clone ${REPO_URL} ${HORIZONTEST_DIR}/horizon
132+
else
133+
git clone ${REPO_URL} ${HORIZONTEST_DIR}/horizon
134+
fi
131135
chown -R horizontest:horizontest horizon
132136
pushd horizon
133-
git pull --rebase
137+
if [[ ${REPO_URL} == *redhat.com* ]]; then
138+
git -c http.sslVerify=false pull --rebase
139+
else
140+
git pull --rebase
141+
fi
134142
git checkout ${HORIZON_REPO_BRANCH}
135143

136144
clean_leftover_images

0 commit comments

Comments
 (0)