1
0
Fork 0
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:
Nobuyoshi Nakada 2019-09-06 22:15:36 +09:00
parent 733aa2f8b5
commit 055b441093
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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