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