capistrano-git-with-submodules 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +4 -0
- data/lib/capistrano/scm/git-with-submodules.rb +11 -2
- 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: fdba8fe1dcb93e559f238d43e9ab676eef9a0d6a0129e7cc67b9e095d14579f6
|
4
|
+
data.tar.gz: 1ca0cc0665cc980217b2f8f20f16bc59ed8ad4f9ab5d58343aff11c2b24c3713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28aa5ab47278f50ba5c096c563318ab2164db8fd1ec2ead43fd88a9170e6d4b90033645c71287d392b49d8dc742bbd2e90ffa84136fed340c8dbe42247623849
|
7
|
+
data.tar.gz: c6c2035eda864d752f2bf2b899647cdaea16e3a4c75987c6fbc83533d57f98d3d962a3701df592057b7037efee61426defe9f6d32e4319827661cb6888b87614
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@ Git submodule support for Capistrano 3.7+
|
|
4
4
|
|
5
5
|
For Capistrano 3.0-3.6 use old [capistrano-git-submodule-strategy](https://github.com/ekho/capistrano-git-submodule-strategy)
|
6
6
|
|
7
|
+
**NOTE:** The project is looking for active maintainers.
|
8
|
+
|
7
9
|
## Using
|
8
10
|
|
9
11
|
#### Gemfile
|
@@ -29,6 +31,8 @@ require "capistrano/scm/git-with-submodules"
|
|
29
31
|
install_plugin Capistrano::SCM::Git::WithSubmodules
|
30
32
|
```
|
31
33
|
|
34
|
+
> If you are upgrading from [`capistrano-git-submodule-strategy`](https://github.com/ekho/capistrano-git-submodule-strategy#using) you should remove its settings from your `Gemfile`, `Capfile` and `deploy.rb`.
|
35
|
+
|
32
36
|
## Contributing to capistrano-git-with-submodules
|
33
37
|
|
34
38
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
@@ -27,8 +27,17 @@ class Capistrano::SCM::Git::WithSubmodules < Capistrano::Plugin
|
|
27
27
|
verbose = Rake.application.options.trace ? 'v' : ''
|
28
28
|
quiet = Rake.application.options.trace ? '' : '--quiet'
|
29
29
|
|
30
|
-
execute :git, :reset, '--mixed', quiet, fetch(:branch)
|
31
|
-
|
30
|
+
execute :git, :reset, '--mixed', quiet, fetch(:branch), '--'
|
31
|
+
update_submodule = proc do
|
32
|
+
execute :git, :submodule, 'update',
|
33
|
+
'--init', '--checkout', '--recursive', '--remote', 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.5
|
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-21 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.8
|
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+
|