Skip to content

Commit

Permalink
need to change commit since the dep file path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuoguo committed Jul 20, 2023
1 parent cfdc1ea commit e217bf1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions source/verus/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ pub fn exec(cmd: &mut Command, reports: Option<Reports>) -> Result<(), String> {
} else {
&dep
};
create_dir_all(proj_path.join(rel_path.parent().unwrap())).unwrap();

create_dir_all(proj_path.join(rel_path.parent().unwrap())).unwrap();
std::fs::copy(dep, proj_path.join(rel_path))
.map_err(|err| format!("failed to copy file {} to repo_path {}", dep.display(), err))?;
}
Expand All @@ -206,15 +206,9 @@ pub fn exec(cmd: &mut Command, reports: Option<Reports>) -> Result<(), String> {
)
})?;

Command::new("git")
.current_dir(&proj_path)
.arg("add")
.args(deps)
.arg("reports.toml")
.output()
.map_err(|x| {
format!("localstorage: failed to stage current project with error message: {}", x)
})?;
Command::new("git").current_dir(&proj_path).arg("add").arg(".").output().map_err(|x| {
format!("localstorage: failed to stage current project with error message: {}", x)
})?;

std::process::Command::new("git")
.current_dir(&proj_path)
Expand Down

0 comments on commit e217bf1

Please sign in to comment.