[rubygems/rubygems] Remove unnecessary method
https://github.com/rubygems/rubygems/commit/97241e0ea4
This commit is contained in:
parent
621fe09016
commit
058cd3a6df
@ -129,8 +129,8 @@ module Bundler
|
|||||||
|
|
||||||
def git_push(remote = nil)
|
def git_push(remote = nil)
|
||||||
remote ||= default_remote
|
remote ||= default_remote
|
||||||
perform_git_push "#{remote} refs/heads/#{current_branch}"
|
sh(%W[git push #{remote} refs/heads/#{current_branch}])
|
||||||
perform_git_push "#{remote} refs/tags/#{version_tag}"
|
sh(%W[git push #{remote} refs/tags/#{version_tag}])
|
||||||
Bundler.ui.confirm "Pushed git commits and release tag."
|
Bundler.ui.confirm "Pushed git commits and release tag."
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -158,11 +158,6 @@ module Bundler
|
|||||||
allowed_push_host || env_rubygems_host || "rubygems.org"
|
allowed_push_host || env_rubygems_host || "rubygems.org"
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform_git_push(options = "")
|
|
||||||
cmd = "git push #{options}"
|
|
||||||
sh(cmd.shellsplit)
|
|
||||||
end
|
|
||||||
|
|
||||||
def already_tagged?
|
def already_tagged?
|
||||||
return false unless sh(%w[git tag]).split(/\n/).include?(version_tag)
|
return false unless sh(%w[git tag]).split(/\n/).include?(version_tag)
|
||||||
Bundler.ui.confirm "Tag #{version_tag} has already been created."
|
Bundler.ui.confirm "Tag #{version_tag} has already been created."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user