Skip to content

Commit 3a06731

Browse files
committed
git clone recurese submodules
1 parent 6c89d0c commit 3a06731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/git.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def ping(repo)
1919

2020
def clone(repo, destination, branch: nil)
2121
with_ssh_key do |env|
22-
cli = [exe, 'clone', '--depth', '1']
22+
cli = [exe, 'clone', '--depth', '1', '--recurse-submodules', '-j2']
2323
cli += ['--single-branch', '--branch', branch] if branch.present?
2424
cli += [repo, destination]
2525
::ShellUtil.execute(*cli, env: env, timeout_sec: 300).success!

0 commit comments

Comments
 (0)