aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/dev-cmd/test-bot.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/test-bot.rb b/Library/Homebrew/dev-cmd/test-bot.rb
index d20711588..7a5853c48 100644
--- a/Library/Homebrew/dev-cmd/test-bot.rb
+++ b/Library/Homebrew/dev-cmd/test-bot.rb
@@ -1076,7 +1076,10 @@ module Homebrew
# 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 rebuild and bottle upload rely on full clone.
- safe_system "brew", "tap", tap.name, "--full" if tap
+ if tap
+ ENV["HOMEBREW_UPDATE_TO_TAG"] = "1"
+ safe_system "brew", "tap", tap.name, "--full"
+ end
if ARGV.include? "--ci-upload"
return test_ci_upload(tap)