def _check_repository(self):
"""
Check if repository exist and clone it if not.
Then fill _repo instance attribute et make a pull.
:return:
"""
if not os.path.exists("%s/.git" % self._repository_path):
Repo.clone_from(self.REPOSITORY_ADDRESS, self._repository_path)
self._repo = Repo(self._repository_path)
self._pull()
评论列表
文章目录