Address @wvu-r7's comments and better filtering

bug/bundler_fix
Tod Beardsley 2014-01-31 16:44:42 -06:00
parent 87412be33d
commit 03d65cd2bd
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 9 additions and 2 deletions

View File

@ -516,8 +516,15 @@ end
dirs = ARGV
if SPOTCHECK_RECENT
last_release =%x{git tag -l #{DateTime.now.year}*}.split.last
new_modules = %x{git diff #{last_release}..HEAD --raw | grep -P 'A\tmodules' | sed 's/.*A\t//'}
msfbase = %x{\\git rev-parse --show-toplevel}.strip
if File.directory? msfbase
Dir.chdir(msfbase)
else
$stderr.puts "You need a git binary in your path to use this functionality."
exit(0x02)
end
last_release = %x{\\git tag -l #{DateTime.now.year}\\*}.split.last
new_modules = %x{\\git diff #{last_release}..HEAD --name-only --diff-filter A modules}
dirs = dirs | new_modules.split
end