Skip to content

Commit f224164

Browse files
committed
Fix for environment without git
1 parent ac5bab8 commit f224164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tempfile.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
2323
# Specify which files should be added to the gem when it is released.
2424
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2525
gemspec = File.basename(__FILE__)
26-
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
26+
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL, exception: false) do |ls|
2727
ls.readlines("\x0", chomp: true).reject do |f|
2828
(f == gemspec) ||
2929
f.start_with?(*%w[bin/ test/ spec/ features/ .git Gemfile])

0 commit comments

Comments
 (0)