def METHOD_NAME(self):
    """Is used to refresh all attributes after updates, e.g. checkout or commit"""
    self.sha = self.run("git rev-parse HEAD")
    self.branch = self.run("git branch --show-current") or self.sha
    self.sha_short = self.sha[:11]
    # The following command shows the most recent tag in a graph
    # Format should match TAG_REGEXP
    if self._ignore_no_tags and is_shallow():
        try:
            self._update_tags()
        except subprocess.CalledProcessError:
            pass
        return
    self._update_tags()