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

save-excursion: Search failed: "^ remotes\\/origin" in branch manager #371

Closed
mbunkus opened this issue Feb 2, 2012 · 2 comments
Closed

Comments

@mbunkus
Copy link
Contributor

mbunkus commented Feb 2, 2012

magit next, revision b84af7c

After adding a remote in a new repository the following error message is shown:

save-excursion: Search failed: "^  remotes\\/origin"

Also the branch display is then messed up slightly.

Steps to reproduce:

  1. Create an empty repository.
  2. Add a file. Commit.
  3. Run magit on the repository.
  4. Open the branch manager.
  5. Hit 'a'. Enter a name, e.g. "origin". Enter the URL. The error is now shown.

The error is also shown whenever magit-status is executed from the branch manager in this state.

The error disappears as soon as I push something to the remote.

This looks like an issue if git has no information about remote branches yet -- or if there simply are no remote branches.

@hpdeifel
Copy link
Contributor

hpdeifel commented Jun 3, 2012

The problem is in magit-wash-branches. It expects, that every remote
has at least one line in git remote -vva, but that isn't the case
if the remote has no branches (e.g if they haven't been fetched, yet).

@tarsius
Copy link
Member

tarsius commented Apr 20, 2013

A fix has been merged, see #422.

@tarsius tarsius closed this as completed Apr 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants