Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Utkarsh Ayachit
ParaView-Superbuild
Commits
59654de6
Commit
59654de6
authored
Oct 28, 2020
by
Ben Boeckel
⛰
Browse files
ci: support older git for checking out ParaView
parent
2d235b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/checkout_paraview.sh
View file @
59654de6
...
...
@@ -23,8 +23,18 @@ else
fi
readonly
pv_branch
# The CentOS 7 containers have an old git that does not support this flag
# (added in 2.9.0).
shallow_submodules
=
"--shallow-submodules"
if
echo
"
$CI_JOB_NAME
"
|
grep
-q
"build:linux"
;
then
shallow_submodules
=
""
fi
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment