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/07/04 14:41:56 UTC

[whimsy] branch master updated: Handle missing repo details

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 009ac8a  Handle missing repo details
009ac8a is described below

commit 009ac8aa7825743a02741046e505b47b7d2e16b0
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jul 4 15:41:46 2020 +0100

    Handle missing repo details
---
 Rakefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index 65613d8..8f4e85a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -289,6 +289,10 @@ namespace :git do
         require 'uri'
         base = URI.parse('git://git.apache.org/')
         gitrepos.each do |name, description|
+          unless description
+            puts "Skipping git:pull of #{name} because no details were found"
+            next
+          end
           if name == 'letsencrypt' and not `which certbot`.empty?
             puts "Skipping git:pull of #{name} because certbot is installed"
             next
@@ -313,7 +317,6 @@ namespace :git do
             end
           else
             # fresh checkout
-            depth = description['depth']
             if depth
               system('git', 'clone', '--depth', depth.to_s, (base + description['url']).to_s, name)
             else