capistrano-git-with-submodules 2.0.3 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -0
- data/lib/capistrano/scm/git-with-submodules.rb +10 -1
- data/lib/capistrano-git-with-submodules/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a4366a533d7cfaa684aa49ee038d47aca48f99be0afbe52b5a06677d0b76a41c
|
4
|
+
data.tar.gz: bc2e28dc0144f610eb3744d5f65acb1a41107c8f958289a6d2e1adc16cbdb2fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4367e2ccda88abee857230c6a1b454691a3210883f82c47e7109ff97136b1026bf7c0c9a7e2a996215cbf1e2b62ce3c1cb70f0ea58555420b2d593cc3fa090f8
|
7
|
+
data.tar.gz: f8947cd9dc20587478b7c4a37ec418ebe39b9b814fc3dd3d21f3a1132a53722209481e58f6a7448105527b7e3e05352921848ad1d364677b26d39cea8d55d843
|
data/README.md
CHANGED
@@ -28,7 +28,16 @@ class Capistrano::SCM::Git::WithSubmodules < Capistrano::Plugin
|
|
28
28
|
quiet = Rake.application.options.trace ? '' : '--quiet'
|
29
29
|
|
30
30
|
execute :git, :reset, '--mixed', quiet, fetch(:branch), '--'
|
31
|
-
|
31
|
+
update_submodule = proc do
|
32
|
+
execute :git, :submodule, 'update',
|
33
|
+
'--init', '--checkout', '--recursive', quiet
|
34
|
+
end
|
35
|
+
begin
|
36
|
+
update_submodule.call
|
37
|
+
rescue SSHKit::Command::Failed
|
38
|
+
execute :git, :submodule, 'sync', '--recursive', quiet
|
39
|
+
update_submodule.call
|
40
|
+
end
|
32
41
|
execute :find, release_path, "-name '.git'", "|", "xargs -I {} rm -rf#{verbose} '{}'"
|
33
42
|
execute :rm, "-f#{verbose}", temp_index_file_path.to_s
|
34
43
|
end if test :test, '-f', release_path.join('.gitmodules')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-git-with-submodules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Gorbylev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -56,8 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: 1.3.6
|
58
58
|
requirements: []
|
59
|
-
|
60
|
-
rubygems_version: 2.6.11
|
59
|
+
rubygems_version: 3.0.3.1
|
61
60
|
signing_key:
|
62
61
|
specification_version: 4
|
63
62
|
summary: Git submodules support for Capistrano 3.7+
|