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 1fc318ba Skip non-standard URLs
1fc318ba is described below

commit 1fc318ba6413c0d2d388272dbb594f85d5b80d0f
Author: Sebb <[email protected]>
AuthorDate: Wed Dec 27 15:12:13 2023 +0000

    Skip non-standard URLs
---
 tools/setup_local_repo.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/setup_local_repo.rb b/tools/setup_local_repo.rb
index b1b35cfe..4abeb1d6 100755
--- a/tools/setup_local_repo.rb
+++ b/tools/setup_local_repo.rb
@@ -11,11 +11,11 @@ require 'whimsy/asf'
 
 ASF_REPO='https://svn.apache.org/repos/' # where to fetch files
 
-LOCAL_FILE='/var/tools/svnrep' # Change this as required
+LOCAL_FILE='/var/tools/svnrep' # Change this as required; must exist
 
 LOCAL_URL='file://' + LOCAL_FILE
 
-svnrepos = ASF::SVN.repo_entries(true)
+svnrepos = ASF::SVN.repo_entries(true).reject{|k,v| v['url'].start_with? 
'http'}
 
 # Find the top-level directories and create repositories
 svnrepos.map{|k,v| v['url'].split('/')[0]}.uniq.sort.each do |tlr|

Reply via email to