whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: We don't need a full checkout
Date Mon, 02 Dec 2019 22:06:01 GMT
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 bd166f5  We don't need a full checkout
bd166f5 is described below

commit bd166f556fbf9bb0f401d14b5f3abba7f78cb1f7
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Dec 2 22:05:47 2019 +0000

    We don't need a full checkout
---
 Rakefile       | 7 ++++++-
 repository.yml | 3 +++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index 2ac81e2..c0841d1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -262,7 +262,12 @@ namespace :git do
             end
           else
             # fresh checkout
-            system 'git', 'clone', (base + description['url']).to_s, name
+            depth = description['depth']
+            if depth
+              system 'git', 'clone', '--depth', depth.to_s, (base + description['url']).to_s,
name
+            else
+              system 'git', 'clone', (base + description['url']).to_s, name
+            end
             Dir.chdir(name) {system "git checkout #{branch}"} if branch
           end
         end
diff --git a/repository.yml b/repository.yml
index 15b1c3d..95d41b5 100644
--- a/repository.yml
+++ b/repository.yml
@@ -8,12 +8,15 @@
   infrastructure-puppet:
     url:  https://github.com/apache/infrastructure-puppet.git
     branch: deployment
+    depth: 1
 
   letsencrypt:
     url: https://github.com/letsencrypt/letsencrypt
+    depth: 1
 
   ruby2js:
     url: https://github.com/rubys/ruby2js.git
+    depth: 1
 
 # N.B. the names in the section below should not be changed as they are used by Ruby
 # Entries that are not intended to have local workspaces are indicated by: 'depth: skip'


Mime
View raw message