class Travis::CLI::RepoCommand
def find_slug
def find_slug git_head = `git name-rev --name-only HEAD 2>#{IO::NULL}`.chomp git_remote = `git config --get branch.#{git_head}.remote 2>#{IO::NULL}`.chomp git_remote = 'origin' if git_remote.empty? git_info = `git config --get remote.#{git_remote}.url 2>#{IO::NULL}`.chomp $1 if Addressable::URI.parse(git_info).path =~ GIT_REGEX end