aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb14
1 files changed, 11 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 71259d677..a30a85e6a 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -874,9 +874,17 @@ module Homebrew
p ARGV
tap = resolve_test_tap
- # 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 unless tap.installed?
+ 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
if ARGV.include? "--ci-upload"
return test_ci_upload(tap)