[前][次][番号順一覧][スレッド一覧]

ruby-changes:44596

From: nobu <ko1@a...>
Date: Tue, 8 Nov 2016 16:45:23 +0900 (JST)
Subject: [ruby-changes:44596] nobu:r56669 (trunk): vcs.rb: expand srcdir

nobu	2016-11-08 16:45:19 +0900 (Tue, 08 Nov 2016)

  New Revision: 56669

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56669

  Log:
    vcs.rb: expand srcdir
    
    * tool/vcs.rb (VCS::GIT#initialize): expand srcdir if it is a
      local path.

  Modified files:
    trunk/tool/vcs.rb
Index: tool/vcs.rb
===================================================================
--- tool/vcs.rb	(revision 56668)
+++ tool/vcs.rb	(revision 56669)
@@ -360,6 +360,14 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L360
       [last, changed, modified, branch, title]
     end
 
+    def initialize(*)
+      super
+      if srcdir = @srcdir and self.class.local_path?(srcdir)
+        @srcdir = File.realpath(srcdir)
+      end
+      self
+    end
+
     def cmd_pipe(*cmds, &block)
       self.class.cmd_pipe_at(@srcdir, cmds, &block)
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]