mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Reuse sh
helper for git push
too
https://github.com/rubygems/rubygems/commit/32aa540163
This commit is contained in:
parent
df21600b98
commit
621fe09016
1 changed files with 1 additions and 3 deletions
|
@ -160,9 +160,7 @@ module Bundler
|
||||||
|
|
||||||
def perform_git_push(options = "")
|
def perform_git_push(options = "")
|
||||||
cmd = "git push #{options}"
|
cmd = "git push #{options}"
|
||||||
out, status = sh_with_status(cmd.shellsplit)
|
sh(cmd.shellsplit)
|
||||||
return if status.success?
|
|
||||||
raise "Couldn't git push. `#{cmd}' failed with the following output:\n\n#{out}\n"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def already_tagged?
|
def already_tagged?
|
||||||
|
|
Loading…
Add table
Reference in a new issue