Skip to content

Commit 965daf4

Browse files
committed
Updated to add submodule recursion to clones and checks outs of dependencies during install
1 parent ec82c07 commit 965daf4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/fastsandpm/_git_utils.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ def clone(remote: str, dest: pathlib.Path) -> None:
8080
Raises:
8181
subprocess.CalledProcessError: If the git clone command fails.
8282
"""
83-
subprocess.check_output(["git", "clone", remote, dest], stderr=subprocess.STDOUT)
83+
subprocess.check_output(
84+
["git", "clone", "--recurse-submodules", remote, dest],
85+
stderr=subprocess.STDOUT
86+
)
8487

8588

8689
def checkout(commitish: str, repo: pathlib.Path) -> None:
@@ -93,7 +96,10 @@ def checkout(commitish: str, repo: pathlib.Path) -> None:
9396
Raises:
9497
subprocess.CalledProcessError: If the git checkout command fails.
9598
"""
96-
subprocess.check_output(["git", "checkout", commitish], cwd=repo, stderr=subprocess.STDOUT)
99+
subprocess.check_output(
100+
["git", "checkout", "--recurse-submodules", commitish],
101+
cwd=repo, stderr=subprocess.STDOUT
102+
)
97103

98104

99105
def fetch(repo: pathlib.Path) -> None:

0 commit comments

Comments
 (0)