def get_git_project(self, path, raises=False, auto_add=False):
        src = self.worktree.normalize_path(path)
        for git_project in self.git_projects:
            if git_project.src == src:
                return git_project
        if auto_add:
            self.worktree.add_project(path)
            return self.get_git_project(path)
        if raises:
            raise NoSuchGitProject(src)
Get a git project by its sources
dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/worktree.py/GitWorkTree.get_git_project