You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/02 21:17:28 UTC
[whimsy] branch master updated: Oops, typo
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new c76986f Oops, typo
c76986f is described below
commit c76986f1b1a595d2b51f7fcfb9e0a2d15449ef2a
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jun 2 22:17:10 2020 +0100
Oops, typo
---
lib/whimsy/asf/svn.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/asf/svn.rb b/lib/whimsy/asf/svn.rb
index 3a9e166..0d2a688 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -567,13 +567,13 @@ module ASF
else
uri = URI.parse(path)
# allow file: URIs for local testing
- if uri.is_a? URI::FILE or uri.is_a? URI::HTTPS # includes HTTPS
+ if uri.is_a? URI::File or uri.is_a? URI::HTTPS # includes HTTPS
basename = File.basename(uri.path).untaint
parentdir = File.dirname(uri.path).untaint
uri.path = parentdir
parenturl = uri
else
- raise ArgumentError.new("Path #{path} must be a file or URL")
+ raise ArgumentError.new("Path '#{path}' must be a file or URL")
end
end
outputfile = File.join(tmpdir, basename).untaint