Skip to content

Commit

Permalink
Ensure git gem messages always appear
Browse files Browse the repository at this point in the history
When there is no lockfile, we've already cloned the repository earlier to resolve the lockfile. So the check here will return false and some git gems message will not appear.
  • Loading branch information
JuanitoFatas committed Apr 3, 2020
1 parent 7e26027 commit 00ca7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gel/lock_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def activate(env, base_store, install: false, output: nil)
revision = resolved_gem.body["revision"].first

dir = git_depot.git_path(remote, revision)
if installer && !Dir.exist?(dir)
if installer
installer.load_git_gem(remote, revision, name)

locks[name] = -> { Gel::DirectGem.new(dir, name, resolved_gem.version) }
Expand Down

0 comments on commit 00ca7aa

Please sign in to comment.