capistrano-git-submodule-strategy 0.1.2 → 0.1.3
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.3'
|
8
8
|
gem.authors = ["Boris Gorbylev"]
|
9
9
|
gem.email = ["ekho@ekho.name"]
|
10
10
|
gem.description = %q{Git submodule support for Capistrano 3}
|
@@ -26,7 +26,7 @@ class Capistrano::Git
|
|
26
26
|
# and copy everything to the release path
|
27
27
|
def release
|
28
28
|
git :checkout, fetch(:branch)
|
29
|
-
git :
|
29
|
+
git :reset, '--hard', "origin/#{fetch(:branch)}"
|
30
30
|
git :submodule, :update, '--init', '--recursive'
|
31
31
|
context.execute "rsync -ar --exclude=.git\* #{repo_path}/ #{release_path}"
|
32
32
|
end
|