diff --git a/src/git.rs b/src/git.rs index d10b5d5f..c4d27d2e 100644 --- a/src/git.rs +++ b/src/git.rs @@ -55,7 +55,17 @@ impl Git { .arg("pull") .arg("--rebase") .arg("--autostash") - .current_dir(path) + .current_dir(&path) + .spawn()? + .wait()? + .check()?; + + Command::new(&git) + .arg("submodule") + .arg("update") + .arg("--init") + .arg("--recursive") + .current_dir(&path) .spawn()? .wait()? .check()?;