def METHOD_NAME(command):
    """ Run a git command.
        :return: (stdout, stderr, returncode) tuple
    """
    proc = subprocess.Popen(command,
       stdout=subprocess.PIPE,
       stderr=subprocess.PIPE)
    (stdoutdata, stderrdata) = proc.communicate()
    while True:
        if proc.returncode is not None:
            return (stdoutdata, stderrdata, proc.returncode)