Skip to content

Commit d9e560c

Browse files
committed
simplify Build::update_existing_submodule
`Build::update_existing_submodule` is already doing the same thing.. Signed-off-by: onur-ozkan <[email protected]>
1 parent d0985bb commit d9e560c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bootstrap/src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,7 @@ impl Build {
545545
// Look for `submodule.$name.path = $path`
546546
// Sample output: `submodule.src/rust-installer.path src/tools/rust-installer`
547547
let submodule = line.split_once(' ').unwrap().1;
548-
let path = Path::new(submodule);
549-
// Don't update the submodule unless it's already been cloned.
550-
if GitInfo::new(false, path).is_managed_git_subrepository() {
551-
self.config.update_submodule(submodule);
552-
}
548+
self.update_existing_submodule(submodule);
553549
}
554550
}
555551

0 commit comments

Comments
 (0)