def detect_type(repodir='.'):
    for repotype in registry:
        detect = registry[repotype][0]
        if detect(repodir):
            return repotype
Detect the type of the repository at `repodir`.
dataset/ETHPy150Open ravello/testmill/lib/testmill/versioncontrol.py/detect_type