diff options
| author | Jack Nagel | 2014-07-11 16:12:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-11 16:15:45 -0500 |
| commit | 8493dc7cc008d1edf6494332b1163efc77189f2a (patch) | |
| tree | 0c91739abecd07f25119d4f105b0450512f72c61 | |
| parent | 4fcd8fb121c2e170b0fee46321e8c6456a5c82f3 (diff) | |
| download | homebrew-8493dc7cc008d1edf6494332b1163efc77189f2a.tar.bz2 | |
brew-test-bot: use git to do the diff filtering
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index adcaf3d19..b32de6ffd 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -252,15 +252,11 @@ class Test return unless diff_start_sha1 != diff_end_sha1 return if @url and not steps.last.passed? - diff_stat = git "diff-tree", "-r", "--name-status", + git( + "diff-tree", "-r", "--name-only", "--diff-filter=AM", diff_start_sha1, diff_end_sha1, "--", "Library/Formula" - - diff_stat.each_line do |line| - status, filename = line.split - # Don't try and do anything to removed files. - if status == "A" || status == "M" - @formulae << File.basename(filename, ".rb") - end + ).each_line do |line| + @formulae << File.basename(line.chomp, ".rb") end end |
