capistrano-git-submodule-strategy 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-git-submodule-strategy"
|
7
|
-
gem.version = '0.1.
|
7
|
+
gem.version = '0.1.6'
|
8
8
|
gem.authors = ["Boris Gorbylev"]
|
9
9
|
gem.email = ["ekho@ekho.name"]
|
10
10
|
gem.description = %q{Git submodule support for Capistrano 3}
|
@@ -6,7 +6,7 @@ class Capistrano::Git
|
|
6
6
|
include Capistrano::Git::DefaultStrategy
|
7
7
|
|
8
8
|
def test
|
9
|
-
test! " [ -
|
9
|
+
test! " [ -f #{repo_path}/HEAD ] "
|
10
10
|
end
|
11
11
|
|
12
12
|
def check
|
@@ -24,7 +24,7 @@ class Capistrano::Git
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def clone
|
27
|
-
git :clone, '
|
27
|
+
git :clone, '--mirror', repo_url, repo_path
|
28
28
|
end
|
29
29
|
|
30
30
|
def update
|
@@ -35,10 +35,8 @@ class Capistrano::Git
|
|
35
35
|
# make sure the submodules are up-to-date
|
36
36
|
# and copy everything to the release path
|
37
37
|
def release
|
38
|
-
git :
|
39
|
-
|
40
|
-
git :submodule, :update, '--init', '--recursive'
|
41
|
-
context.execute "rsync -ar --exclude=.git\* #{repo_path}/ #{release_path}"
|
38
|
+
git :clone, '--depth=1', '--recursive', '-b', fetch(:branch), "file://#{repo_path}", release_path
|
39
|
+
context.execute("find #{release_path} -name '.git*' | xargs -I {} rm -rfv {}")
|
42
40
|
end
|
43
41
|
end
|
44
42
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|