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
2d235b80
Commit
2d235b80
authored
Oct 28, 2020
by
Ben Boeckel
⛰
Browse files
ci: update fetch_submodule to work for old git
parent
c0cf7112
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/fetch_submodule.cmake
View file @
2d235b80
...
...
@@ -22,8 +22,17 @@ execute_process(
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
res
)
message
(
FATAL_ERROR
"Failed to get the remote url for the submodule:
${
err
}
"
)
execute_process
(
COMMAND
"
${
GIT_COMMAND
}
"
config --get remote.origin.url
OUTPUT_VARIABLE remote_url
RESULT_VARIABLE res
ERROR_VARIABLE err
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
res
)
message
(
FATAL_ERROR
"Failed to get the remote url for the submodule:
${
err
}
"
)
endif
()
endif
()
# Take the "directory" of the source project path and append the "filename" of
...
...
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