mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #16835 from reitermarkus/tap-config-private
Don't store tap config when value is unknown.
This commit is contained in:
commit
3ea74ea417
@ -969,7 +969,10 @@ class Tap
|
|||||||
if custom_remote?
|
if custom_remote?
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
GitHub.private_repo?(full_name)
|
# Don't store config if we don't know for sure.
|
||||||
|
return false if (value = GitHub.private_repo?(full_name)).nil?
|
||||||
|
|
||||||
|
value
|
||||||
end
|
end
|
||||||
rescue GitHub::API::HTTPNotFoundError
|
rescue GitHub::API::HTTPNotFoundError
|
||||||
true
|
true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user