Commit ba993f49 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve qa/qa/git/repository.rb

parent 6f372150
...@@ -61,11 +61,8 @@ module QA ...@@ -61,11 +61,8 @@ module QA
def configure_identity(name, email) def configure_identity(name, email)
run(%Q{git config user.name #{name}}) run(%Q{git config user.name #{name}})
run(%Q{git config user.email #{email}}) run(%Q{git config user.email #{email}})
<<<<<<< HEAD
=======
add_credentials_to_netrc add_credentials_to_netrc
>>>>>>> upstream/master
end end
def commit_file(name, contents, message) def commit_file(name, contents, message)
...@@ -116,19 +113,6 @@ module QA ...@@ -116,19 +113,6 @@ module QA
attr_reader :uri, :username, :password, :known_hosts_file, :private_key_file attr_reader :uri, :username, :password, :known_hosts_file, :private_key_file
<<<<<<< HEAD
def ssh_key_set?
!private_key_file.nil?
end
def run(command_str)
command = [env_vars, command_str, '2>&1'].compact.join(' ')
warn "DEBUG: command=[#{command}]" if Runtime::Env.debug?
output, _ = Open3.capture2(command)
output = output.chomp.gsub(/\s+$/, '')
warn "DEBUG: output=[#{output}]" if Runtime::Env.debug?
=======
def debug? def debug?
Runtime::Env.respond_to?(:verbose?) && Runtime::Env.verbose? Runtime::Env.respond_to?(:verbose?) && Runtime::Env.verbose?
end end
...@@ -144,7 +128,6 @@ module QA ...@@ -144,7 +128,6 @@ module QA
output, _ = Open3.capture2(command) output, _ = Open3.capture2(command)
output = output.chomp.gsub(/\s+$/, '') output = output.chomp.gsub(/\s+$/, '')
warn "DEBUG: output=[#{output}]" if debug? warn "DEBUG: output=[#{output}]" if debug?
>>>>>>> upstream/master
output output
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment