Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
f080a8e8
Commit
f080a8e8
authored
Apr 24, 2017
by
Marina Bertolino
Browse files
Merge remote-tracking branch 'origin/develop' into develop
parents
cb4b6f4b
16d953b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/OTBModuleRemote.cmake
View file @
f080a8e8
...
...
@@ -22,12 +22,17 @@
# Helper to perform the initial git clone and checkout.
function
(
_git_clone git_executable git_repository git_tag module_dir
)
execute_process
(
COMMAND
"
${
git_executable
}
"
clone
"
${
git_repository
}
"
"
${
module_dir
}
"
RESULT_VARIABLE error_code
OUTPUT_QUIET
ERROR_QUIET
)
set
(
retryCount 0
)
set
(
error_code 1
)
while
(
error_code
AND
(
retryCount LESS 3
))
execute_process
(
COMMAND
"
${
git_executable
}
"
clone
"
${
git_repository
}
"
"
${
module_dir
}
"
RESULT_VARIABLE error_code
OUTPUT_QUIET
ERROR_QUIET
)
math
(
EXPR retryCount
"
${
retryCount
}
+1"
)
endwhile
()
if
(
error_code
)
message
(
FATAL_ERROR
"Failed to clone repository: '
${
git_repository
}
'"
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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