Method: Priha::GitCommand.call_git_push
- Defined in:
- lib/priha/git_command.rb
.call_git_push(remote_name, local_branch, remote_branch) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/priha/git_command.rb', line 27 def call_git_push(remote_name, local_branch, remote_branch) result = `git push #{remote_name} #{local_branch}:#{remote_branch} --quiet` return $?.exitstatus, result rescue => e # catch exception intead of status (a workaround for Windows) STDERR.puts e return 127, '' end |