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)
|
||||
(opts = cmds.last).kind_of?(Hash) or cmds << (opts = {})
|
||||
opts[:external_encoding] ||= "UTF-8"
|
||||
if srcdir and self.class.local_path?(srcdir)
|
||||
if srcdir
|
||||
opts[:chdir] ||= srcdir
|
||||
end
|
||||
VCS::DEBUG_OUT.puts cmds.inspect if debug?
|
||||
|
@ -536,9 +536,7 @@ class VCS
|
|||
|
||||
def initialize(*)
|
||||
super
|
||||
if srcdir = @srcdir and self.class.local_path?(srcdir)
|
||||
@srcdir = File.realpath(srcdir)
|
||||
end
|
||||
@srcdir = File.realpath(@srcdir)
|
||||
self
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue