

def _get_author(self, hash_):
    cmd = [self._executable, 'log', hash_, '-n', '1', '--format=format:%an']
    result = self._run_command(cmd)
    if result['returncode']:
        raise RuntimeError(('Could not fetch author:\n%s' % result['output']))
    return result['output']

dataset/ETHPy150Open ros-infrastructure/catkin_pkg/src/catkin_pkg/changelog_generator_vcs.py GitClient._get_author/original