diff options
-rwxr-xr-x | tool/make-snapshot | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index cacf97199a..546a977157 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -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 |