Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion cookbooks/travis_build_environment/recipes/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
retry_delay 30
end

package %w[git git-core] do
case node['lsb']['codename']
when 'trusty'
pkgs = %w[git git-core]
when 'xenial'
pkgs = %w[git git-core]
when 'bionic'
pkgs = %w[git]
end

package pkgs do
action %i[install upgrade]
end

Expand Down