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

Already on GitHub? Sign in to your account

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

mbunkus opened this Issue Feb 2, 2012 · 2 comments


None yet
3 participants

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 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 commented Apr 20, 2013

A fix has been merged, see #422.

@tarsius tarsius closed this Apr 20, 2013

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