Rollup merge of #108963 - jhheider:fix-CI-non-git-builds, r=albertlarsan68

only call git on git checkouts during bootstrap

fixes https://github.com/rust-lang/rust/issues/108959
This commit is contained in:
Matthias Krüger 2023-03-10 12:32:02 +01:00 committed by GitHub
commit 7918df5f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,7 +216,7 @@ pub(crate) fn is_ci_llvm_available(config: &Config, asserts: bool) -> bool {
/// Returns true if we're running in CI with modified LLVM (and thus can't download it)
pub(crate) fn is_ci_llvm_modified(config: &Config) -> bool {
CiEnv::is_ci() && {
CiEnv::is_ci() && config.rust_info.is_managed_git_subrepository() && {
// We assume we have access to git, so it's okay to unconditionally pass
// `true` here.
let llvm_sha = detect_llvm_sha(config, true);