lib/hub/commands.rb
def repo_exists?(user)
      require 'net/http'
      url = API_REPO % [user, repo_name]
      Net::HTTPSuccess === Net::HTTP.get_response(URI(url))
    end
# Determines whether a user has a fork of the current repo on GitHub.
Determines whether a user has a fork of the current repo on GitHub.
Determines whether a user has a fork of the current repo on GitHub .
def repo_exists?(user)
      require 'net/http'
      url = API_REPO % [user, repo_name]
      Net::HTTPSuccess === Net::HTTP.get_response(URI(url))
    end
def repo_exists? ( user ) require 'net/http' url = API_REPO % [ user , repo_name ] Net :: HTTPSuccess === Net :: HTTP . get_response ( URI ( url ) ) end
Determines whether a user has a fork of the current repo on GitHub.
Determines whether a user has a fork of the current repo on GitHub .
user