about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-02-15 22:36:49 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-02-15 22:48:32 +0100
commitf8dbcae9f42e7f238595fe604c1bfccba64b510e (patch)
treef8a12778c0aa144433575ea6a4b91ada45c14586
parent214d821268628f7637d004c8e6b5eb7b69dd0583 (diff)
downloadrust-f8dbcae9f42e7f238595fe604c1bfccba64b510e.tar.gz
rust-f8dbcae9f42e7f238595fe604c1bfccba64b510e.zip
lintcheck: fix bug in downloade_and_extract() for git sources: we need to execute "git checkout xy" inside the repo dir!
-rw-r--r--clippy_dev/src/lintcheck.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_dev/src/lintcheck.rs b/clippy_dev/src/lintcheck.rs
index ce05d4b0887..2077f393a3f 100644
--- a/clippy_dev/src/lintcheck.rs
+++ b/clippy_dev/src/lintcheck.rs
@@ -136,6 +136,7 @@ impl CrateSource {
                 Command::new("git")
                     .arg("checkout")
                     .arg(commit)
+                    .current_dir(&repo_path)
                     .output()
                     .expect("Failed to check out commit");