Skip to content

Commit f8dbcae

Browse files
committed
lintcheck: fix bug in downloade_and_extract() for git sources: we need to execute "git checkout xy" inside the repo dir!
1 parent 214d821 commit f8dbcae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_dev/src/lintcheck.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl CrateSource {
136136
Command::new("git")
137137
.arg("checkout")
138138
.arg(commit)
139+
.current_dir(&repo_path)
139140
.output()
140141
.expect("Failed to check out commit");
141142

0 commit comments

Comments
 (0)