git: Fix the Remotes pane selection handling