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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bebbb5270ae49575eaa6a18fd102ec338f1bfd00
4
- data.tar.gz: a0fd9c71886d56ea82dc2c9b982026d9e30273b7
2
+ SHA256:
3
+ metadata.gz: a4366a533d7cfaa684aa49ee038d47aca48f99be0afbe52b5a06677d0b76a41c
4
+ data.tar.gz: bc2e28dc0144f610eb3744d5f65acb1a41107c8f958289a6d2e1adc16cbdb2fa
5
5
  SHA512:
6
- metadata.gz: 6d95e1e2e03fd89bbd6256953a422d32ea3dcebcbde6596ceb9a09f8bd2a2272f45e4446e6e4ab7ad250eb14e50b330d39976ddec58541e8af7e4974621b5fdb
7
- data.tar.gz: b6afffbf120fd3636a8e88eb3702a70f3a920f7864dac55245519babd87995f7783349a816db63bc7017a1779a0406c8e1d8f9b5fc85e4da0e14932c5104d81d
6
+ metadata.gz: 4367e2ccda88abee857230c6a1b454691a3210883f82c47e7109ff97136b1026bf7c0c9a7e2a996215cbf1e2b62ce3c1cb70f0ea58555420b2d593cc3fa090f8
7
+ data.tar.gz: f8947cd9dc20587478b7c4a37ec418ebe39b9b814fc3dd3d21f3a1132a53722209481e58f6a7448105527b7e3e05352921848ad1d364677b26d39cea8d55d843
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
@@ -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
- execute :git, :submodule, 'update', '--init', '--checkout', '--recursive', quiet
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')
@@ -2,7 +2,7 @@ module Capistrano
2
2
  module Git
3
3
  module With
4
4
  module Submodules
5
- VERSION = "2.0.3"
5
+ VERSION = "2.0.6"
6
6
  end
7
7
  end
8
8
  end
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.3
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: 2017-03-26 00:00:00.000000000 Z
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
- rubyforge_project:
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+