mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Don't store tap config when value is unknown.
This commit is contained in:
parent
d55fa09d1e
commit
c7f4e006f4
@ -963,7 +963,10 @@ class Tap
|
||||
if custom_remote?
|
||||
true
|
||||
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
|
||||
rescue GitHub::API::HTTPNotFoundError
|
||||
true
|
||||
|
Loading…
x
Reference in New Issue
Block a user