diff --git a/src/util/dep_type.zig b/src/util/dep_type.zig index a15de572e82beb2abb21eddb0abe34c981371dbb..3a6af5ef371f4b8f328f033f942a8596f59e7c41 100644 --- a/src/util/dep_type.zig +++ b/src/util/dep_type.zig @@ -16,8 +16,7 @@ pub const DepType = enum { switch (self) { .system_lib => {}, .git => { - _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath}); - _ = try u.run_cmd(null, &[_][]const u8{"git", "submodule", "update", "--init", "--recursive"}); + _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", "--recurse-submodules", rpath, dpath}); }, .hg => { _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath});