Recursively git clone addon repositories, allowing submodules (#148)

This commit is contained in:
Franck Nijhof 2017-08-14 16:15:08 +02:00 committed by Pascal Vizeli
parent 2f9f9c6165
commit 14013ac923

View File

@ -48,7 +48,8 @@ class GitRepo(object):
try:
_LOGGER.info("Clone addon %s repository", self.url)
self.repo = await self.loop.run_in_executor(
None, git.Repo.clone_from, self.url, str(self.path))
None, git.Repo.clone_from, self.url, str(self.path),
recursive=True)
except (git.InvalidGitRepositoryError, git.NoSuchPathError,
git.GitCommandError) as err: