def _git_cmd(self, cmd):
        """
        Git git cmd in subprocess and return output.

        Raises: GitError on any error output.
        """
        status, output = commands.getstatusoutput('git %s' % cmd)
        if status:
            raise GitError('"%s" failed:\n%s' % (cmd, output))
        return output
dataset/ETHPy150Open jenanwise/codequality/codequality/scmhandlers.py/GitHandler._git_cmd/original