diff --git a/xbstrap/base.py b/xbstrap/base.py index 0da9c20..cf55465 100644 --- a/xbstrap/base.py +++ b/xbstrap/base.py @@ -2568,7 +2568,9 @@ def checkout_src(cfg, src, settings): subprocess.check_call(["git", "rebase", commit], cwd=src.source_dir) if source.get("submodules", False): - subprocess.check_call(["git", "submodule", "update", "--init"], cwd=src.source_dir) + subprocess.check_call( + ["git", "submodule", "update", "--init", "--recursive"], cwd=src.source_dir + ) elif "hg" in source: args = ["hg", "checkout"] if "tag" in source: