From b1ae787068abcd16df20c7cbe9832f344e45fe94 Mon Sep 17 00:00:00 2001 From: Meghan Date: Tue, 15 Dec 2020 06:24:20 -0800 Subject: [PATCH] util/deptype: condense clone command to be recursive --- src/util/dep_type.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}); -- 2.54.0