summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasudev Kamath <vasudev@copyninja.info>2017-06-19 21:40:35 +0530
committerVasudev Kamath <vasudev@copyninja.info>2017-12-23 20:47:45 +0530
commitd9a09185244ac43f473cb71826874613b12b5f90 (patch)
treed5359a2135c3d86d4963d6d63c5a14de1167211e
parent4bf3795a21a09966030377f1523341a71a3d649d (diff)
Replace last interpolating Exec::shell command.
-rw-r--r--content/development/update_rust_subprocess.rst6
1 files changed, 2 insertions, 4 deletions
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<Vec<String>> {
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()?;