Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dca264d

Browse files
authored
Merge pull request #580 from gagern/patch-1
Initialize git submodules
2 parents f5e4f7c + 8ad5536 commit dca264d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pre_commit/store.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ def clone_strategy(directory):
123123
)
124124
with cwd(directory):
125125
cmd_output('git', 'reset', ref, '--hard', env=no_git_env())
126+
cmd_output(
127+
'git', 'submodule', 'update', '--init', '--recursive',
128+
env=no_git_env(),
129+
)
126130

127131
return self._new_repo(repo, ref, clone_strategy)
128132

0 commit comments

Comments
 (0)