# File lib/rhc/git_helpers.rb, line 77 def git_remote_add(remote_name, remote_url) cmd = "#{discover_git_executable} remote add upstream \"#{remote_url}\"" debug "Running #{cmd} 2>&1" output = %x[#{cmd} 2>&1] raise RHC::GitException, "Error while adding upstream remote - #{output}" unless output.empty? end