mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
only call git on git checkouts
This commit is contained in:
parent
39f2657d11
commit
54e5c19f08
@ -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)
|
/// 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 {
|
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
|
// We assume we have access to git, so it's okay to unconditionally pass
|
||||||
// `true` here.
|
// `true` here.
|
||||||
let llvm_sha = detect_llvm_sha(config, true);
|
let llvm_sha = detect_llvm_sha(config, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user