Skip to content

Error: project not found when try to create new branch in specified project #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
panidarynka opened this issue Jun 22, 2017 · 3 comments

Comments

@panidarynka
Copy link

Hello,
I successfully installed your git-repo for Windows.
Then init repo with manifest and synced my projects.
When trying to create a new branch with:
$ repo start branch_name project_name
I have an error: project project_name not found.
But command:
$ repo start branch_name --all
works fine.
Why doesn't repo tool see my projects?

@panidarynka panidarynka changed the title Error: project not found when try to create branch in specified project Error: project not found when try to create new branch in specified project Jun 22, 2017
@hassin23ayz
Copy link

try :

$repo start branchName --all

@Xkhi
Copy link

Xkhi commented Jun 4, 2018

I have the same issue, the thing here is I don't want to create a branch in all projects

@Joeskaife
Copy link

in .repo/repo/command.py update the following functions to add backslash substitution:

  def _ResetPathToProjectMap(self, projects):
    self._by_path = dict((p.worktree.replace('\\', '/'), p) for p in projects)

  def _UpdatePathToProjectMap(self, project):
    self._by_path[project.worktree.replace('\\', '/')] = project

This is needed because rather inconsistently the manifest has the backslashes substituted already in the original version so when the project name is compared with the manifest it fails.

I wonder if someone maintaining this GIT could fix this for everyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants