

def git_directories():
    'Determine (absolute git work directory path, .git subdirectory path).'
    cmd = ('git', 'rev-parse', '--show-toplevel', '--git-dir')
    out = run_command_exc(GitDirectoriesException, *cmd)
    try:
        return out.splitlines()
    except ValueError:
        raise GitDirectoriesException(0, cmd, cmd, {
            
        })

dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py git_directories/VarMisuse@55/103 `out`->`cmd`