def mktempdir(mode=None):
    dir_name = tempfile.mkdtemp()
    if mode:
        os.chmod(dir_name, mode)
L{getRepositoryCommand} from a directory which looks like both as a
dataset/ETHPy150Open facebook/IT-CPE/code/lib/modules/fs_tools.py/mktempdir--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/RepositoryCommandDetectionTest.test_subversionPreferredOverGit