diff --git a/pre_commit/store.py b/pre_commit/store.py index ee1f755b..84fc2123 100644 --- a/pre_commit/store.py +++ b/pre_commit/store.py @@ -123,6 +123,10 @@ class Store(object): ) with cwd(directory): cmd_output('git', 'reset', ref, '--hard', env=no_git_env()) + cmd_output( + 'git', 'submodule', 'update', '--init', '--recursive', + env=no_git_env(), + ) return self._new_repo(repo, ref, clone_strategy)