lib/travis/cli/repo_command.rb in travis-1.5.1 vs lib/travis/cli/repo_command.rb in travis-1.5.2
- old
+ new
@@ -58,9 +58,11 @@
end
def detect_api_endpoint
if explicit_api_endpoint?
repo_config['endpoint'] = api_endpoint
+ elsif ENV['TRAVIS_ENDPOINT']
+ ENV['TRAVIS_ENDPOINT']
else
repo_config['endpoint'] ||= begin
GH.head("/repos/#{slug}")
Travis::Client::ORG_URI
rescue GH::Error