jmollan / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

When there are uncommited changes in a branch, repo checkout <another_branch> fail with an erroneous error #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Marc Blank <mblank@google.com> on Sat Jul 18 17:08:01 PDT 2009
Source: JIRA REPO-44

When switching branches with repo checkout <another_branch>  while there are
uncommitted changes in the current branch, the error message given is:

error: no project has branch <another_branch>

which is not correct, since there is such a branch.

If I instead use git checkout <another_branch>, I get the correct message:

error: You have local changes to 'somethingorother'; cannot switch branches.

Committing the change and then using repo checkout <another_branch> works...

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by sop+code@google.com on 24 Sep 2009 at 11:07