authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 06:24:20 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 06:24:20 -08:00
logb1ae787068abcd16df20c7cbe9832f344e45fe94
treebaf4c0adb7eaecbd32baca511f32422aec8b0769
parent111b88da9e3b4c4f5e1a3271f5befaa8abbf3146

util/deptype: condense clone command to be recursive


1 files changed, 1 insertions(+), 2 deletions(-)

src/util/dep_type.zig+1-2
...@@ -16,8 +16,7 @@ pub const DepType = enum {...@@ -16,8 +16,7 @@ pub const DepType = enum {
16 switch (self) {16 switch (self) {
17 .system_lib => {},17 .system_lib => {},
18 .git => {18 .git => {
19 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath});19 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", "--recurse-submodules", rpath, dpath});
20 _ = try u.run_cmd(null, &[_][]const u8{"git", "submodule", "update", "--init", "--recursive"});
21 },20 },
22 .hg => {21 .hg => {
23 _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath});22 _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath});