From d9a09185244ac43f473cb71826874613b12b5f90 Mon Sep 17 00:00:00 2001 From: Vasudev Kamath Date: Mon, 19 Jun 2017 21:40:35 +0530 Subject: Replace last interpolating Exec::shell command. --- content/development/update_rust_subprocess.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/development/update_rust_subprocess.rst b/content/development/update_rust_subprocess.rst index 595f72a..1afdefe 100644 --- a/content/development/update_rust_subprocess.rst +++ b/content/development/update_rust_subprocess.rst @@ -38,10 +38,8 @@ Below is updated function. fn copyright_fromgit(repo: &str) -> Result> { let tempdir = TempDir::new_in(".", "debcargo")?; - Exec::shell(OsStr::new(format!("git clone --bare {} {}", - repo, - tempdir.path().to_str().unwrap()) - .as_str())) + Exec::cmd("git") + .args(&["clone", "--bare", repo, tempdir.path().to_str().unwrap()]) .stdout(subprocess::NullFile) .stderr(subprocess::NullFile) .popen()?; -- cgit v1.2.3