def __execute(self, git_cmd, *cmd_args):

        #print >>sys.stderr, "DEBUG:", git_cmd, cmd_args

        p = self.__pipe(git_cmd, *cmd_args, stdout=PIPE, stderr=PIPE)

        stdout_data, stderr_data = p.communicate()
        #TODO, do something with p.returncode, e.g. raise exception

        return stdout_data
execute git command and return file-like object of stdout
dataset/ETHPy150Open hvr/trac-git-plugin/tracext/git/PyGIT.py/GitCore.__execute