diff --git a/omnibus/config/projects/agent.rb b/omnibus/config/projects/agent.rb index 65b5bb8ead6ea..d85fd92ff1ce6 100644 --- a/omnibus/config/projects/agent.rb +++ b/omnibus/config/projects/agent.rb @@ -30,13 +30,13 @@ COMPRESSION_LEVEL = 5 end -if ENV.has_key?("OMNIBUS_GIT_CACHE_DIR") +BUILD_OCIRU = Omnibus::Config.host_distribution == "ociru" + +if ENV.has_key?("OMNIBUS_GIT_CACHE_DIR") && !BUILD_OCIRU Omnibus::Config.use_git_caching true Omnibus::Config.git_cache_dir ENV["OMNIBUS_GIT_CACHE_DIR"] end -BUILD_OCIRU = Omnibus::Config.host_distribution == "ociru" - if windows_target? # Note: this is the path used by Omnibus to build the agent, the final install # dir will be determined by the Windows installer. This path must not contain