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/11 13:35:47 UTC
[whimsy] branch master updated: Use library method
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 3a4f8df Use library method
3a4f8df is described below
commit 3a4f8dfc4df9c316481d625a2b948970b109ee69
Author: Sebb <se...@apache.org>
AuthorDate: Thu Jun 11 14:35:39 2020 +0100
Use library method
---
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 791d709..3feaa2f 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -46,9 +46,9 @@ module ASF
next unless Dir.exist? name.untaint
# TODO not sure why chdir is necessary here; it looks like svn info can handle soft links OK
Dir.chdir name.untaint do
- out, err = self.svn('info','.') # svn() checks for path...
+ out, err = self.getInfoItem('.','url') # svn() checks for path...
if out
- [out[/URL: (.*)/,1].sub(/^http:/,'https:'), Dir.pwd.untaint]
+ [out.sub(/^http:/,'https:'), Dir.pwd.untaint]
end
end
}.compact]