diff options
Diffstat (limited to 'content/development')
-rw-r--r-- | content/development/update_rust_subprocess.rst | 6 |
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()?; |