def is_git_repo(folder):
    with utils.chdir(folder):
        try:
            shell.git('rev-parse', '--git-dir')
        except CalledProcessError:
            return False
        return True
Check if a folder is a git repository
dataset/ETHPy150Open blue-yonder/pyscaffold/pyscaffold/repo.py/is_git_repo