def init_repo(self): repo = Repo(self.dir_codebase_project) repo.init(url=self.project_info['repo_url'])
def list_branch(self): repo = Repo(self.dir_codebase_project) repo.init(url=self.project_info['repo_url']) return repo.branches()
def list_commit(self, branch): repo = Repo(self.dir_codebase_project) repo.init(url=self.project_info['repo_url']) return repo.commits(branch)
def list_tag(self): repo = Repo(self.dir_codebase_project) repo.init(url=self.project_info['repo_url']) return repo.tags()