def sha(self) -> Optional[str]: """Commit sha""" return GitOffline.get_branch_sha(self.path, self.name, self.remote.name)
def commit(self) -> Commit: sha = GitOffline.get_branch_sha(self.path, branch=self.name, remote=self.name) return Commit(self.path, sha)