mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vcs.rb: expand srcdir
* tool/vcs.rb (VCS::GIT#initialize): expand srcdir if it is a local path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5443a9fdb5
commit
27831204e1
1 changed files with 8 additions and 0 deletions
|
@ -360,6 +360,14 @@ class VCS
|
|||
[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
|
||||
|
|
Loading…
Reference in a new issue