code: def git_try_describe(repo_path):
      
      try:
          p = subprocess.Popen(['git', 'describe', '--always', '--dirty'],
                               cwd=repo_path, stdout=subprocess.PIPE,
                               stderr=subprocess.PIPE)
          output, _ = p.communicate()
      except:
          return None
      else:
          if p.returncode == 0:
              return output.strip()
  
      return None
docs: Try to describe the current commit of a Git repository.
  
      Return a string containing a string with the commit ID and/or a base tag,
      if successful. Otherwise, return None.