1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
Nobuyoshi Nakada 2019-09-08 00:48:18 +09:00
parent a3f5265fd1
commit 2d017d6126
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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