def git(self, *args, **kwargs):
        '''call git command

        return generator object of output lines
        '''
        cmdargs = ['git']
        cmdargs.extend(args)
        cmdargs.extend('--%s=%s' % kv for kv in kwargs.iteritems())
        try:
            p = Popen(cmdargs, stdout=PIPE, cwd=self._repo.path)
            for line in p.stdout:
                yield line.rstrip('\r\n')
        except GeneratorExit:
            p.stdout.close()
            p.wait()
dataset/ETHPy150Open nakamuray/blikit/blikit/models.py/ObjectDatabase.git/original