Skip to content

Commit 43ac76e

Browse files
author
Brent Cook
committed
Fix rapid7#8464, use pathname when determining where .git is
2 parents ee57c71 + b05fa9c commit 43ac76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metasploit-framework.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
2424
spec.homepage = 'https://www.metasploit.com'
2525
spec.license = 'BSD-3-clause'
2626

27-
if File.directory?(File.join(__FILE__, ".git"))
27+
if File.directory?(File.join(File.dirname(__FILE__), ".git"))
2828
spec.files = `git ls-files`.split($/).reject { |file|
2929
file =~ /^documentation|^external/
3030
}

0 commit comments

Comments
 (0)