libgit2/libgit2 — pull request #2392 by carlosmn (2014-06-01 00:18:24+00:00)
Title: remote: build up the list of refs to remove

When removing the remote-tracking branches, build up the list and remove
in two steps, working around an issue with the iterator. Removing while
we're iterating over the refs can cause us to miss references.