Skip to content

Commit

Permalink
make-snapshot: default to the toplevel directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nobu committed Sep 7, 2019
1 parent a3f5265 commit 2d017d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tool/make-snapshot
Expand Up @@ -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
Expand Down

0 comments on commit 2d017d6

Please sign in to comment.