mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Always use git.ruby-lang.org as origin
naruse sets remote.origin.pushUrl = nonexistent as fail-safe configuration to avoid accidentally push a new branch to origin.
This commit is contained in:
parent
45bb6f28db
commit
0ba1ea7fbf
1 changed files with 4 additions and 3 deletions
|
@ -12,6 +12,7 @@ require 'uri'
|
|||
require 'shellwords'
|
||||
|
||||
ENV['LC_ALL'] = 'C'
|
||||
ORIGIN = 'git@git.ruby-lang.org:ruby.git'
|
||||
|
||||
module Merger
|
||||
REPOS = 'svn+ssh://svn@ci.ruby-lang.org/ruby/'
|
||||
|
@ -150,7 +151,7 @@ class << Merger
|
|||
unless execute('git', 'tag', tagname)
|
||||
abort 'specfied tag already exists. check tag name and remove it if you want to force re-tagging'
|
||||
end
|
||||
execute('git', 'push', 'origin', tagname, interactive: true)
|
||||
execute('git', 'push', ORIGIN, tagname, interactive: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -176,7 +177,7 @@ class << Merger
|
|||
execute('svn', 'rm', '-m', "remove tag #{tagname}", tag_url, interactive: true)
|
||||
else
|
||||
execute('git', 'tag', '-d', tagname)
|
||||
execute('git', 'push', 'origin', ":#{tagname}", interactive: true)
|
||||
execute('git', 'push', ORIGIN, ":#{tagname}", interactive: true)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -218,7 +219,7 @@ class << Merger
|
|||
current_branch = IO.popen(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], &:read).strip
|
||||
execute('git', 'add', '.') &&
|
||||
execute('git', 'commit', '-F', file) &&
|
||||
execute('git', 'push', 'origin', current_branch)
|
||||
execute('git', 'push', ORIGIN, current_branch)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue