mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
VCS::GIT no longer accepts remote repository
This commit is contained in:
parent
733aa2f8b5
commit
055b441093
1 changed files with 2 additions and 4 deletions
|
@ -435,7 +435,7 @@ class VCS
|
||||||
def cmd_args(cmds, srcdir = nil)
|
def cmd_args(cmds, srcdir = nil)
|
||||||
(opts = cmds.last).kind_of?(Hash) or cmds << (opts = {})
|
(opts = cmds.last).kind_of?(Hash) or cmds << (opts = {})
|
||||||
opts[:external_encoding] ||= "UTF-8"
|
opts[:external_encoding] ||= "UTF-8"
|
||||||
if srcdir and self.class.local_path?(srcdir)
|
if srcdir
|
||||||
opts[:chdir] ||= srcdir
|
opts[:chdir] ||= srcdir
|
||||||
end
|
end
|
||||||
VCS::DEBUG_OUT.puts cmds.inspect if debug?
|
VCS::DEBUG_OUT.puts cmds.inspect if debug?
|
||||||
|
@ -536,9 +536,7 @@ class VCS
|
||||||
|
|
||||||
def initialize(*)
|
def initialize(*)
|
||||||
super
|
super
|
||||||
if srcdir = @srcdir and self.class.local_path?(srcdir)
|
@srcdir = File.realpath(@srcdir)
|
||||||
@srcdir = File.realpath(srcdir)
|
|
||||||
end
|
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue