Skip to content

Commit

Permalink
Add a reset of all submodules to avoid update issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lepot committed Jul 6, 2015
1 parent e527d30 commit 44d836b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/capistrano/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def has_roles?
execute :git, :reset, '--quiet', '--hard', "#{rsync_target.call}"

if fetch(:enable_git_submodules)
execute :git, :submodule, :foreach, "git reset --hard HEAD"

execute :git, :submodule, :update
end
end
Expand Down

0 comments on commit 44d836b

Please sign in to comment.