capistrano-git-submodule-strategy 0.1.19 → 0.1.20
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 +4 -4
- data/VERSION +1 -1
- data/capistrano-git-submodule-strategy.gemspec +3 -3
- data/lib/capistrano/git-submodule-strategy.rb +2 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a22f68ba979ebd34bb210eb2908ca1471717cc8b
|
|
4
|
+
data.tar.gz: f9321c10874ff77b9369c6c2df7cf0eee996da6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bd458b10de7fea86d8fefdfd5e7d73928ee630655a12eb4807dba670cace46fb92af0dcf1a4d57287786b864d840e96c650ee4419b5ddd889b63450a50eb6b3
|
|
7
|
+
data.tar.gz: 4989e7c3f0550f4503bcd91e080224f60017f082499bacad40d1c83d4094e5299d28824014f6ec867fc47b581eca821050c2b9c627d6359f102343d05a4e9f7e
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.20
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: capistrano-git-submodule-strategy 0.1.
|
|
5
|
+
# stub: capistrano-git-submodule-strategy 0.1.20 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "capistrano-git-submodule-strategy"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.20"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Boris Gorbylev"]
|
|
14
|
-
s.date = "2016-
|
|
14
|
+
s.date = "2016-03-22"
|
|
15
15
|
s.description = "Git submodule support for Capistrano 3"
|
|
16
16
|
s.email = "ekho@ekho.name"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -36,15 +36,11 @@ class Capistrano::Git
|
|
|
36
36
|
# and copy everything to the release path
|
|
37
37
|
def release
|
|
38
38
|
unless context.test(:test, '-e', release_path) && context.test("ls -A #{release_path} | read linevar")
|
|
39
|
-
git :clone, (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch),
|
|
39
|
+
git :clone, "--reference #{repo_path}", (fetch(:git_keep_meta, false) ? '' : '--depth=1'), '-b', fetch(:branch), repo_url, release_path
|
|
40
40
|
context.within_only release_path do
|
|
41
41
|
git :submodule, 'update', '--init', '--recursive'
|
|
42
42
|
end
|
|
43
|
-
|
|
44
|
-
context.within_only release_path do
|
|
45
|
-
git :remote, 'set-url', 'origin', repo_url
|
|
46
|
-
end
|
|
47
|
-
else
|
|
43
|
+
unless fetch(:git_keep_meta, false)
|
|
48
44
|
verbose = Rake.application.options.trace ? 'v' : ''
|
|
49
45
|
context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rf#{verbose} '{}'")
|
|
50
46
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-git-submodule-strategy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Boris Gorbylev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: shoulda
|