Skip to content

Commit

Permalink
add-to-update-remote-fetch (#19)
Browse files Browse the repository at this point in the history
- Added remote fetch so that actual latest commit gets fetched from remote

Co-authored-by: Scott Anderson <scott.anderson@scandiweb.com>
  • Loading branch information
ScottA38 and Scott Anderson authored Mar 21, 2022
1 parent 9c989eb commit 347ddac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/scm/git-with-submodules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def define_tasks

execute :git, :reset, '--mixed', quiet, fetch(:branch), '--'
execute :git, :submodule, 'sync', '--recursive', quiet
execute :git, :submodule, 'update', '--init', '--checkout', '--recursive', quiet
execute :git, :submodule, 'update', '--init', '--checkout', '--recursive', '--remote', quiet
execute :find, release_path, "-name '.git'", "|", "xargs -I {} rm -rf#{verbose} '{}'"
execute :rm, "-f#{verbose}", temp_index_file_path.to_s
end if test :test, '-f', release_path.join('.gitmodules')
Expand Down

0 comments on commit 347ddac

Please sign in to comment.