Skip to content

Commit

Permalink
(PDK-526) fix test for git
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Apr 12, 2018
1 parent 5453953 commit e359159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet-resource_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
spec.summary = 'This library provides a simple way to write new native resources for puppet.'
spec.homepage = 'https://github.com/puppetlabs/puppet-resource_api'

# on out internal jenkins, there is no `.git` directory, but since it is a clean machine, we don't need to worry about anything else
spec.files = if Dir.exist?('.git')
# on out internal jenkins, there is no git, but since it is a clean machine, we don't need to worry about anything else
spec.files = if system('git --help > /dev/null')
`git ls-files -z`.split("\x0")
else
Dir.glob('**/*')
Expand Down

0 comments on commit e359159

Please sign in to comment.