code: def _run(self, name, *args, **kwargs):
  
          
  
          stdout = six.b('')
          cmd = getattr(self.git, name)
  
          # Ask cmd(...) to return a (status, stdout, stderr) tuple
          kwargs['with_extended_output'] = True
  
          # Execute command
          try:
              (_, stdout, _) = cmd(*args, **kwargs)
          except GitCommandError as error:
              # Add more meta-information to errors
              message = "'{0}' returned exit status {1}".format(
                  ' '.join(str(c) for c in error.command),
                  error.status
              )
  
              raise GitError(message, stderr=error.stderr, stdout=stdout)
  
          return stdout.strip()
docs: Run a git command specified by name and args/kwargs.