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