Skip to content

Commit d18b0ea

Browse files
committed
depth flag seems to break submodule fetch on macOS images
1 parent 66c09f5 commit d18b0ea

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ def main():
2727

2828
import pip.vcs.git
2929
g = pip.vcs.git.Git()
30-
g.run_command(["submodule", "sync"])
31-
use_depth = g.get_git_version() >= type(g.get_git_version())("1.8.4")
3230

33-
g.run_command(["submodule", "update", "--init", "--recursive"] +
34-
(["--depth=1"] if use_depth else []) +
35-
[cmake_source_dir])
31+
g.run_command(["submodule", "sync"])
32+
g.run_command(["submodule", "update", "--init", "--recursive", cmake_source_dir])
3633

3734
if build_contrib:
38-
g.run_command(["submodule", "update", "--init", "--recursive"] +
39-
(["--depth=1"] if use_depth else []) +
40-
["opencv_contrib"])
35+
g.run_command(["submodule", "update", "--init", "--recursive", "opencv_contrib"])
4136

4237
del use_depth, g, pip
4338

0 commit comments

Comments
 (0)