We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
patch
git apply
1 parent 2120e3b commit 3825c0fCopy full SHA for 3825c0f
collector/src/compile/benchmark/patch.rs
@@ -60,8 +60,8 @@ impl Patch {
60
pub fn apply(&self, dir: &Path) -> anyhow::Result<()> {
61
log::debug!("applying {} to {:?}", self.name, dir);
62
63
- let mut cmd = Command::new("git");
64
- cmd.current_dir(dir).args(["apply"]).arg(&*self.path);
+ let mut cmd = Command::new("patch");
+ cmd.current_dir(dir).args(["-p1", "-i"]).arg(&*self.path);
65
66
command_output(&mut cmd)?;
67
0 commit comments