aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-06 22:15:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-06 22:15:36 +0900
commit055b44109316bfc5461d6ac820619f893cea536c (patch)
tree84b692fb43d0167e9997b9297f9dd3bf29d3e7df /tool/lib
parent733aa2f8b578d03bbcb91d2f496b01e3b990c7e8 (diff)
downloadruby-055b44109316bfc5461d6ac820619f893cea536c.tar.gz
VCS::GIT no longer accepts remote repository
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/vcs.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index d04ce28905..3fe3eb508c 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -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