Browse Source

Recurse submodules

master
Thomas Forgione 4 weeks ago
parent
commit
41993b65a9
Signed by: Thomas Forgione <thomas@forgione.fr> GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/git.rs

+ 6
- 1
src/git.rs View File

@@ -119,7 +119,12 @@ fn clone_dirty<P: AsRef<Path>>(url: &str, place: P) -> Result<()> {
119 119
     }
120 120
 
121 121
     let command = Command::new("git")
122
-        .args(&["clone", &url, &place.display().to_string()])
122
+        .args(&[
123
+              "clone",
124
+              "--recurse-submodules",
125
+              &url,
126
+              &place.display().to_string()
127
+        ])
123 128
         .stderr(Stdio::null())
124 129
         .status();
125 130
 

Loading…
Cancel
Save