Skip to content

Commit

Permalink
bundle install with git repo needs to be run under the git environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 26, 2024
1 parent 45c04ca commit a0b3ca6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/bundler/cache/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@
FileUtils.mkdir_p bundled_app("vendor/cache")
FileUtils.cp_r git_path, bundled_app("vendor/cache/foo-1.0-#{path_revision}")
FileUtils.rm_rf bundled_app("vendor/cache/foo-1.0-#{path_revision}/.git")
# bundle install with git repo needs to be run under the git environment.
Dir.chdir(bundled_app) { system(*%W[git init --quiet]) }

bundle :install, env: { "BUNDLE_DEPLOYMENT" => "true", "BUNDLE_CACHE_ALL" => "true" }
end
Expand Down

0 comments on commit a0b3ca6

Please sign in to comment.