Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Ansgar Burchardt
dune-docker
Commits
823eea49
Commit
823eea49
authored
Apr 16, 2018
by
Dominic Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some flaws in handling the --recursive option
parent
95382a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
base-common/duneci-install-module
base-common/duneci-install-module
+3
-3
No files found.
base-common/duneci-install-module
View file @
823eea49
...
...
@@ -27,7 +27,7 @@ fi
branch
=
"
${
DUNECI_BRANCH
:-}
"
recursive
=
0
recursive
=
while
:
;
do
case
"
${
1
}
"
in
...
...
@@ -55,11 +55,11 @@ if [[ -d "${module}" ]]; then
exit
1
fi
git_clone_opts
=(
--depth
=
1
--no-single-branch
"
${
recursive
}
"
)
git_clone_opts
=(
--depth
=
1
--no-single-branch
)
if
[[
-n
"
${
branch
}
"
]]
;
then
git_clone_opts+
=(
-b
"
${
branch
}
"
)
fi
if
[[
${
recursive
}
]]
;
then
if
[[
-n
"
${
recursive
}
"
]]
;
then
git_clone_opts+
=(
"--recursive"
)
fi
...
...
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