Method: Priha::GitCommand.call_git_remote_remove

Defined in:
lib/priha/git_command.rb

.call_git_remote_remove(remote_name) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/priha/git_command.rb', line 19

def call_git_remote_remove(remote_name)
  result = `git remote remove #{remote_name}`
  return $?.exitstatus, result
rescue => e # catch exception intead of status (a workaround for Windows)
  STDERR.puts e
  return 127, ''
end