def clone(self, raise_for_error=True):
try:
git.Repo.clone_from(self.remote_url, self.local_path)
return True
except git.GitCommandError as e:
if e.status == 128 and not raise_for_error:
return False
raise
# Safe operations only, can be used without acquiring a lock first.
# Specialized subclasses with more operations defined are built by using one of the lock functions.
评论列表
文章目录