Commit 59654de6 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

ci: support older git for checking out ParaView

parent 2d235b80
......@@ -23,8 +23,18 @@ else
readonly pv_branch
# The CentOS 7 containers have an old git that does not support this flag
# (added in 2.9.0).
if echo "$CI_JOB_NAME" | grep -q "build:linux"; then
readonly shallow_submodules
# full clone of paraview with shallow-submodule. full clone needed so that `git describe` works correctly
git clone --recursive --shallow-submodules -b "$pv_branch" "$url" "$CI_PROJECT_DIR/source-paraview"
git clone --recursive $shallow_submodules -b "$pv_branch" "$url" "$CI_PROJECT_DIR/source-paraview"
# let's print ParaView version for reference even when the artifacts disappear
git -C "$CI_PROJECT_DIR/source-paraview" describe
cd "$CI_PROJECT_DIR/source-paraview"
git describe
#git -C "$CI_PROJECT_DIR/source-paraview" describe
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment