Skip to content

Commit 3825c0f

Browse files
committed
collector: use patch instead of git apply
so it'll be possible to run collector inside of tarball
1 parent 2120e3b commit 3825c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/src/compile/benchmark/patch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ impl Patch {
6060
pub fn apply(&self, dir: &Path) -> anyhow::Result<()> {
6161
log::debug!("applying {} to {:?}", self.name, dir);
6262

63-
let mut cmd = Command::new("git");
64-
cmd.current_dir(dir).args(["apply"]).arg(&*self.path);
63+
let mut cmd = Command::new("patch");
64+
cmd.current_dir(dir).args(["-p1", "-i"]).arg(&*self.path);
6565

6666
command_output(&mut cmd)?;
6767

0 commit comments

Comments
 (0)