code: def _post_process_info(self, info):
      # Deprecated code: this was intended to make sure git repository names always
      # ended with ".git", but this is not always the case (e.g. Azure Repos)
      # if info.url and not info.url.endswith(".git"):
      #     info.url += ".git"
  
      if (info.branch or "").startswith("origin/"):
          info.branch = info.branch[len("origin/") :]
  
      return info
  
imports: import abc
  import os
  from subprocess import call, CalledProcessError
  import attr
  import six
  from pathlib2 import Path
  from ....config.defs import VCS_REPO_TYPE, VCS_DIFF, VCS_STATUS, VCS_ROOT, VCS_BRANCH, VCS_COMMIT_ID, VCS_REPOSITORY_URL
  from ....debugging import get_logger
  from .util import get_command_output
label_desc: Use image node_id 4 for calling the GitDetector obj's underlying member method code with example usage: obj._post_process_info(info) and returns: info