зеркало из https://github.com/github/ruby.git
make-snapshot: default to the toplevel directory
As this tool has been intended to use in a working directory, assume that the toplevel directory is under the VCS, and SVN will no longer be canonical.
This commit is contained in:
Родитель
a3f5265fd1
Коммит
2d017d6126
|
@ -569,7 +569,11 @@ elsif $svn
|
|||
elsif $git
|
||||
abort "#{File.basename $0}: use -srcdir with cloned local repository"
|
||||
else
|
||||
vcs = VCS::SVN.new(SVNURL)
|
||||
begin
|
||||
vcs = VCS.detect(File.expand_path("../..", __FILE__))
|
||||
rescue VCS::NotFoundError
|
||||
vcs = VCS::SVN.new(SVNURL)
|
||||
end
|
||||
end
|
||||
|
||||
success = true
|
||||
|
|
Загрузка…
Ссылка в новой задаче