From 347ddacf796fa240be30047abe84780d45500bea Mon Sep 17 00:00:00 2001 From: SA <32736033+ScottA38@users.noreply.github.com> Date: Mon, 21 Mar 2022 09:28:50 +0200 Subject: [PATCH] add-to-update-remote-fetch (#19) - Added remote fetch so that actual latest commit gets fetched from remote Co-authored-by: Scott Anderson --- lib/capistrano/scm/git-with-submodules.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/scm/git-with-submodules.rb b/lib/capistrano/scm/git-with-submodules.rb index ad1f129..50106c8 100644 --- a/lib/capistrano/scm/git-with-submodules.rb +++ b/lib/capistrano/scm/git-with-submodules.rb @@ -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')