Skip to content

Commit

Permalink
Attempt to fix git clone issues (#340)
Browse files Browse the repository at this point in the history
Probably fixes #326
  • Loading branch information
denisidoro authored Apr 13, 2020
1 parent 4451624 commit cbae8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use anyhow::{Context, Error};
use std::process::Command;

pub fn shallow_clone(uri: &str, target: &str) -> Result<(), Error> {
let cmd = format!("git clone {} {} --depth 1", uri, target);
let cmd = format!(r#"git clone "{}" "{}" --depth 1"#, uri, target);
Command::new("bash")
.arg("-c")
.arg(&cmd[..])
Expand Down

0 comments on commit cbae8a5

Please sign in to comment.