Add more depth limits to git checkouts
authorTom Hughes <tom@compton.nu>
Fri, 21 Feb 2020 08:47:50 +0000 (08:47 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 21 Feb 2020 08:49:09 +0000 (08:49 +0000)
cookbooks/civicrm/recipes/default.rb
cookbooks/hardware/recipes/default.rb
cookbooks/osqa/recipes/default.rb
cookbooks/planet/recipes/dump.rb
cookbooks/planet/recipes/notes.rb
cookbooks/supybot/recipes/default.rb
cookbooks/taginfo/recipes/default.rb

index 0dd8f58a10b6f399c3ac41c9e892d310364a633b..7252f61f9e8f733a8383b036e36d17009a8522b6 100644 (file)
@@ -140,6 +140,7 @@ node[:civicrm][:extensions].each_value do |details|
     action :sync
     repository details[:repository]
     revision details[:revision]
+    depth 1
     user "wordpress"
     group "wordpress"
   end
index fa5f43c648f33f2ec2dd3e7cd554573a619dcc8e..060229debb6748fc59670b2a2242bc98dffca02d 100644 (file)
@@ -260,6 +260,7 @@ if tools_packages.include?("areca")
   git "/opt/areca" do
     action :sync
     repository "https://git.openstreetmap.org/private/areca.git"
+    depth 1
     user "root"
     group "root"
     not_if { ENV["TEST_KITCHEN"] }
index a1fb95a444e625ca489408dc788c7e225caf941d..72534683e669240507c5f58ac15849e2f4f8cd23 100644 (file)
@@ -117,6 +117,7 @@ node[:osqa][:sites].each do |site|
     action :sync
     repository "https://git.openstreetmap.org/public/osqa.git"
     revision "live"
+    depth 1
     user site_user
     group site_group
     notifies :run, "execute[osqa-migrate]"
index e283d0ade810afd994e0a0c6542ee5c4e3a5535a..94fd04e937a6e768240b9dd438ea8b4ff63ce03a 100644 (file)
@@ -57,6 +57,7 @@ git "/opt/planet-dump-ng" do
   action :sync
   repository "https://github.com/zerebubuth/planet-dump-ng.git"
   revision "v1.1.6"
+  depth 1
   user "root"
   group "root"
 end
index 382658928434d856c9df25dbd84646e12f088a84..3b22af7397ecf2cbe077eccb1d21eee3019c0fb1 100644 (file)
@@ -36,6 +36,7 @@ end
 git "/opt/planet-notes-dump" do
   action :sync
   repository "https://github.com/openstreetmap/planet-notes-dump.git"
+  depth 1
   user "root"
   group "root"
 end
index 87343c100a1bd8ba369d8b931b67929301fd865a..6a14c00851d6199bf33fdb9cb5ab436342886fe4 100644 (file)
@@ -121,6 +121,7 @@ git "/usr/local/lib/supybot/plugins/Git" do
   action :sync
   repository "https://github.com/openstreetmap/supybot-git"
   revision "master"
+  depth 1
   user "root"
   group "root"
 end
index 6d320ddd0009d40e1c5dd13e41a6595d6ad2d64d..567d81a0e17f5483c99262b7e3d1bbbff0b685cb 100644 (file)
@@ -102,6 +102,7 @@ node[:taginfo][:sites].each do |site|
     action :sync
     repository "https://github.com/taginfo/taginfo.git"
     revision "osmorg-taginfo-live"
+    depth 1
     user "taginfo"
     group "taginfo"
   end