Skip to content

Commit edcf945

Browse files
committed
do not use top-level path in Config::last_modified_commit
It's unnecessary since we already pass top-level path to `helpers::git` function. Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 55b7f8e commit edcf945

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/bootstrap/src/core/config/config.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -2862,16 +2862,9 @@ impl Config {
28622862
crate::exit!(1);
28632863
}
28642864

2865-
// Warn if there were changes to the compiler or standard library since the ancestor commit.
28662865
let mut git = helpers::git(Some(&self.src));
28672866
git.args(["diff-index", "--quiet", &commit, "--"]);
2868-
2869-
// Handle running from a directory other than the top level
2870-
let top_level = &self.src;
2871-
2872-
for path in modified_paths {
2873-
git.arg(top_level.join(path));
2874-
}
2867+
git.args(modified_paths);
28752868

28762869
let has_changes = !t!(git.as_command_mut().status()).success();
28772870
if has_changes {

0 commit comments

Comments
 (0)