Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unambiguous algorithm to complete remote branches
The execution of `git branch --remotes --list` provides output like origin/HEAD -> origin/master origin/master Each seperate word will be proposed as a completion argument. So, 4 values will be suggested instead of 2: origin/HEAD - correct -> - incorrect origin/master - incorrect origin/master - correct That's why `git branch` is replaced with `git for-each-ref` command as the last one always gives a correct list of remote branches.
- Loading branch information