From 398d8db898e976149136d5ca675e3c08dee6ee76 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 21 Feb 2020 00:08:37 +0000 Subject: [PATCH] Git only checkout 1 deep --- cookbooks/blogs/recipes/default.rb | 2 +- cookbooks/donate/recipes/default.rb | 1 + cookbooks/foundation/recipes/owg.rb | 1 + cookbooks/gps-tile/recipes/default.rb | 3 +++ cookbooks/mediawiki/resources/extension.rb | 1 + cookbooks/mediawiki/resources/site.rb | 1 + cookbooks/serverinfo/recipes/default.rb | 1 + cookbooks/stateofthemap/recipes/default.rb | 7 +++++++ cookbooks/switch2osm/recipes/default.rb | 1 + cookbooks/wordpress/resources/theme.rb | 1 + 10 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cookbooks/blogs/recipes/default.rb b/cookbooks/blogs/recipes/default.rb index 49e52cb57..358b3702a 100644 --- a/cookbooks/blogs/recipes/default.rb +++ b/cookbooks/blogs/recipes/default.rb @@ -43,7 +43,7 @@ end git "/srv/blogs.openstreetmap.org" do action :sync repository "git://github.com/gravitystorm/blogs.osm.org.git" - depth 5 + depth 1 user "blogs" group "blogs" notifies :run, "execute[/srv/blogs.openstreetmap.org/Gemfile]", :immediately diff --git a/cookbooks/donate/recipes/default.rb b/cookbooks/donate/recipes/default.rb index 25441aaf6..d4d99a29c 100644 --- a/cookbooks/donate/recipes/default.rb +++ b/cookbooks/donate/recipes/default.rb @@ -55,6 +55,7 @@ end git "/srv/donate.openstreetmap.org" do action :sync repository "git://github.com/osmfoundation/donation-drive.git" + depth 1 user "donate" group "donate" end diff --git a/cookbooks/foundation/recipes/owg.rb b/cookbooks/foundation/recipes/owg.rb index b60d02bac..47a835e9a 100644 --- a/cookbooks/foundation/recipes/owg.rb +++ b/cookbooks/foundation/recipes/owg.rb @@ -33,6 +33,7 @@ end git "/srv/operations.osmfoundation.org" do action :sync repository "git://github.com/openstreetmap/owg-website.git" + depth 1 user "root" group "root" notifies :run, "execute[/srv/operations.osmfoundation.org/Gemfile]" diff --git a/cookbooks/gps-tile/recipes/default.rb b/cookbooks/gps-tile/recipes/default.rb index 42b3f8a28..6d2d6476b 100644 --- a/cookbooks/gps-tile/recipes/default.rb +++ b/cookbooks/gps-tile/recipes/default.rb @@ -45,6 +45,7 @@ git "/srv/gps-tile.openstreetmap.org/import" do action :sync repository "git://github.com/ericfischer/gpx-import.git" revision "live" + depth 1 user "gpstile" group "gpstile" end @@ -62,6 +63,7 @@ git "/srv/gps-tile.openstreetmap.org/datamaps" do action :sync repository "git://github.com/ericfischer/datamaps.git" revision "live" + depth 1 user "gpstile" group "gpstile" end @@ -79,6 +81,7 @@ git "/srv/gps-tile.openstreetmap.org/updater" do action :sync repository "git://github.com/ericfischer/gpx-updater.git" revision "live" + depth 1 user "gpstile" group "gpstile" end diff --git a/cookbooks/mediawiki/resources/extension.rb b/cookbooks/mediawiki/resources/extension.rb index 95c7dff22..de759a66a 100644 --- a/cookbooks/mediawiki/resources/extension.rb +++ b/cookbooks/mediawiki/resources/extension.rb @@ -57,6 +57,7 @@ action :create do action :sync repository extension_repository reference extension_reference + depth 1 enable_submodules true user node[:mediawiki][:user] group node[:mediawiki][:group] diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 55228af06..f8deb22ab 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -109,6 +109,7 @@ action :create do action :sync repository "https://gerrit.wikimedia.org/r/p/mediawiki/core.git" revision mediawiki_reference + depth 1 user node[:mediawiki][:user] group node[:mediawiki][:group] notifies :run, "execute[#{mediawiki_directory}/composer.json]", :immediately diff --git a/cookbooks/serverinfo/recipes/default.rb b/cookbooks/serverinfo/recipes/default.rb index c10d71684..7dd65cbf3 100644 --- a/cookbooks/serverinfo/recipes/default.rb +++ b/cookbooks/serverinfo/recipes/default.rb @@ -35,6 +35,7 @@ end git "/srv/hardware.openstreetmap.org" do action :sync repository "git://github.com/gravitystorm/osmf-server-info.git" + depth 1 user "root" group "root" notifies :run, "execute[/srv/hardware.openstreetmap.org/Gemfile]" diff --git a/cookbooks/stateofthemap/recipes/default.rb b/cookbooks/stateofthemap/recipes/default.rb index 39307279d..69f9a6e0a 100644 --- a/cookbooks/stateofthemap/recipes/default.rb +++ b/cookbooks/stateofthemap/recipes/default.rb @@ -25,6 +25,7 @@ git "/srv/stateofthemap.org" do action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "chooser" + depth 1 user "root" group "root" end @@ -105,6 +106,7 @@ git "/srv/2009.stateofthemap.org" do action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "resources-2009" + depth 1 user "wordpress" group "wordpress" end @@ -142,6 +144,7 @@ git "/srv/2010.stateofthemap.org" do action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "resources-2010" + depth 1 user "wordpress" group "wordpress" end @@ -184,6 +187,7 @@ git "/srv/2011.stateofthemap.org" do action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "resources-2011" + depth 1 user "wordpress" group "wordpress" end @@ -226,6 +230,7 @@ git "/srv/2012.stateofthemap.org" do action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "resources-2012" + depth 1 user "wordpress" group "wordpress" end @@ -268,6 +273,7 @@ end action :sync repository "https://git.openstreetmap.org/public/stateofthemap.git" revision "site-#{year}" + depth 1 user "root" group "root" end @@ -303,6 +309,7 @@ end git "/srv/#{year}.stateofthemap.org" do action :sync repository "git://github.com/openstreetmap/stateofthemap-#{year}.git" + depth 1 user "root" group "root" notifies :run, "execute[/srv/#{year}.stateofthemap.org/Gemfile]" diff --git a/cookbooks/switch2osm/recipes/default.rb b/cookbooks/switch2osm/recipes/default.rb index da4957cad..5dad4d1fe 100644 --- a/cookbooks/switch2osm/recipes/default.rb +++ b/cookbooks/switch2osm/recipes/default.rb @@ -38,6 +38,7 @@ end git "/srv/switch2osm.org" do action :sync repository "https://github.com/switch2osm/switch2osm.github.io.git" + depth 1 user "root" group "root" notifies :run, "execute[/srv/switch2osm.org/Gemfile]" diff --git a/cookbooks/wordpress/resources/theme.rb b/cookbooks/wordpress/resources/theme.rb index 3547f0aae..e4f232713 100644 --- a/cookbooks/wordpress/resources/theme.rb +++ b/cookbooks/wordpress/resources/theme.rb @@ -47,6 +47,7 @@ action :create do action :sync repository theme_repository revision new_resource.revision + depth 1 user node[:wordpress][:user] group node[:wordpress][:group] end -- 2.39.5