From f8a95528dea4db1e8bc09e2d1e5e879edc172ce3 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 4 Jul 2018 14:19:51 +0300 Subject: [PATCH] Update git submodules --- src/git.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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()?;