Skip to content

Commit

Permalink
git clone with --recurse-submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohui-zhangxh committed Jul 17, 2024
1 parent 1573ceb commit b12de87
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 b12de87

Please sign in to comment.