def git_branch(self, project_id): project = self.get(project_id) git = Git(project.checkout_dir, project.repo_url) return git.branch()