We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git
1 parent eab4a0b commit 90abfe6Copy full SHA for 90abfe6
tool/lib/bundled_gem.rb
@@ -20,7 +20,10 @@ module BundledGem
20
21
def unpack(file, *rest)
22
pkg = Gem::Package.new(file)
23
- prepare_test(pkg.spec, *rest) {|dir| pkg.extract_files(dir)}
+ prepare_test(pkg.spec, *rest) do |dir|
24
+ pkg.extract_files(dir)
25
+ FileUtils.rm_rf(Dir.glob(".git*", base: dir).map {|n| File.join(dir, n)})
26
+ end
27
puts "Unpacked #{file}"
28
rescue Gem::Package::FormatError, Errno::ENOENT
29
puts "Try with hash version of bundled gems instead of #{file}. We don't use this gem with release version of Ruby."
0 commit comments