fix path quotation marks

This commit is contained in:
Stephan Dilly 2020-03-27 23:09:07 +01:00
parent edce2dec12
commit 16d0ae4b8f

View file

@ -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")