def sha(self) -> str: """Commit sha""" return GitOnline.get_remote_tag_sha(self.path, self.name, self.remote.name)
def is_checked_out(self) -> bool: current_sha = GitOffline.current_head_commit_sha(self.path) tag_sha = GitOnline.get_remote_tag_sha(self.path, self.name) return current_sha == tag_sha