Skip to content

Commit

Permalink
Merge pull request #889 from xiaohui-zhangxh/git-clone-update-submodules
Browse files Browse the repository at this point in the history
git clone with --recurse-submodules
  • Loading branch information
djmb authored Aug 26, 2024
2 parents f48987a + b12de87 commit e871d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/kamal/commands/builder/clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ module Kamal::Commands::Builder::Clone
end

def clone
git :clone, Kamal::Git.root, path: clone_directory
git :clone, Kamal::Git.root, "--recurse-submodules", path: clone_directory
end

def clone_reset_steps
[
git(:remote, "set-url", :origin, Kamal::Git.root, path: build_directory),
git(:fetch, :origin, path: build_directory),
git(:reset, "--hard", Kamal::Git.revision, path: build_directory),
git(:clean, "-fdx", path: build_directory)
git(:clean, "-fdx", path: build_directory),
git(:submodule, :update, "--init", path: build_directory)
]
end

Expand Down

0 comments on commit e871d34

Please sign in to comment.