Skip to content
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

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

Open
GoogleCodeExporter opened this issue Apr 8, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

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

No branches or pull requests

1 participant