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/09 13:45:02 UTC
[whimsy] branch master updated: Change remaining direct svn call
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 8f72403 Change remaining direct svn call
8f72403 is described below
commit 8f724037a7a42066f76122df009eddaf582a285c
Author: Sebb <se...@apache.org>
AuthorDate: Tue Jun 9 14:44:53 2020 +0100
Change remaining direct svn call
---
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 3650ff2..d029b80 100644
--- a/lib/whimsy/asf/svn.rb
+++ b/lib/whimsy/asf/svn.rb
@@ -46,8 +46,8 @@ 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, status = Open3.capture2('svn', 'info')
- if status.success?
+ out, err = self.svn('info','.') # svn() checks for path...
+ if out
[out[/URL: (.*)/,1].sub(/^http:/,'https:'), Dir.pwd.untaint]
end
end