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 {
1616 switch (self) {
1717 .system_lib => {},
1818 .git => {
19 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath});
20 _ = try u.run_cmd(null, &[_][]const u8{"git", "submodule", "update", "--init", "--recursive"});
19 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", "--recurse-submodules", rpath, dpath});
2120 },
2221 .hg => {
2322 _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath});