diff --git a/asyncgit/src/sync/reset.rs b/asyncgit/src/sync/reset.rs index ef54d693..a64f4afc 100644 --- a/asyncgit/src/sync/reset.rs +++ b/asyncgit/src/sync/reset.rs @@ -36,7 +36,7 @@ pub fn index_reset(path: &Path) -> bool { /// pub fn index_reset_at(repo_path: &str, path: &Path) -> bool { - let cmd = format!("git checkout {:?}", path); + let cmd = format!("git checkout {}", path.to_str().unwrap()); let output = if cfg!(target_os = "windows") { Command::new("cmd")