aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2016-04-19 15:30:18 +0800
committerXu Cheng2016-04-19 16:29:29 +0800
commit799d3aec1575509550b122cd94b71ae45a5f5b8b (patch)
tree08d9613167abc823864f37db7abf5386801fd16a /Library/Homebrew/cmd
parent9a6d5a4feed411a8799352833f7ec73d4332031b (diff)
downloadbrew-799d3aec1575509550b122cd94b71ae45a5f5b8b.tar.bz2
test-bot: simplify the logic
Closes #115. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb17
1 files changed, 5 insertions, 12 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index c9a968ef6..3ac338b6d 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -906,20 +906,13 @@ module Homebrew
def test_bot
sanitize_ARGV_and_ENV
- p ARGV
tap = resolve_test_tap
- if tap.installed?
- # make sure Tap is not a shallow clone.
- # bottle revision and bottle upload rely on full clone.
- if (tap.path/".git/shallow").exist?
- safe_system "git", "-C", tap.path, "fetch", "--unshallow"
- end
- else
- # Tap repository if required, this is done before everything else
- # because Formula parsing and/or git commit hash lookup depends on it.
- safe_system "brew", "tap", tap.name, "--full"
- end
+ # Tap repository if required, this is done before everything else
+ # because Formula parsing and/or git commit hash lookup depends on it.
+ # At the same time, make sure Tap is not a shallow clone.
+ # bottle revision and bottle upload rely on full clone.
+ safe_system "brew", "tap", tap.name, "--full"
if ARGV.include? "--ci-upload"
return test_ci_upload(tap)