remove reference
parent
758dbfa942
commit
649c08ad4b
|
@ -14,13 +14,13 @@ pub fn toggle_index(start: bool, config: &DevToolsConf) -> Result<(), Box<dyn st
|
||||||
);
|
);
|
||||||
|
|
||||||
Command::new("git")
|
Command::new("git")
|
||||||
.current_dir(&config.project_dir_as_string())
|
.current_dir(config.project_dir_as_string())
|
||||||
.args(["update-index", change, &project_path])
|
.args(["update-index", change, &project_path])
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
||||||
if !start {
|
if !start {
|
||||||
Command::new("git")
|
Command::new("git")
|
||||||
.current_dir(&config.project_dir_as_string())
|
.current_dir(config.project_dir_as_string())
|
||||||
.args(["checkout", &project_path])
|
.args(["checkout", &project_path])
|
||||||
.status()?;
|
.status()?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue