test-bot: ensure tap is full clone
This commit is contained in:
parent
4366ea1889
commit
bdd26d0446
@ -874,9 +874,17 @@ module Homebrew
|
|||||||
p ARGV
|
p ARGV
|
||||||
|
|
||||||
tap = resolve_test_tap
|
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
|
# Tap repository if required, this is done before everything else
|
||||||
# because Formula parsing and/or git commit hash lookup depends on it.
|
# because Formula parsing and/or git commit hash lookup depends on it.
|
||||||
safe_system "brew", "tap", tap.name unless tap.installed?
|
safe_system "brew", "tap", tap.name, "--full"
|
||||||
|
end
|
||||||
|
|
||||||
if ARGV.include? "--ci-upload"
|
if ARGV.include? "--ci-upload"
|
||||||
return test_ci_upload(tap)
|
return test_ci_upload(tap)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user