lib/cc/cli/prepare.rb in codeclimate-0.42.0 vs lib/cc/cli/prepare.rb in codeclimate-0.42.1

- old
+ new

@@ -24,10 +24,12 @@ def run require_codeclimate_yml fatal("No fetches configured") unless fetches.present? - ::CC::Resolv.with_fixed_dns { fetch_all } + Dir.chdir(CC::Analyzer::MountedPath.code.container_path) do + ::CC::Resolv.with_fixed_dns { fetch_all } + end success("All fetches fetched") rescue FetchError, InternalHostError => ex fatal(ex.message) end