def on_select_remote(self, remote_index):
        # If the user pressed `esc` or otherwise cancelled.
        if remote_index == -1:
            return

        self.selected_remote = self.remotes[remote_index]

        # Save the selected remote for automatic selection on next palette command.
        self.last_remote_used = self.selected_remote

        self.branches_on_selected_remote = self.list_remote_branches(self.selected_remote)

        current_local_branch = self.get_current_branch_name()

        try:
            pre_selected_idx = self.branches_on_selected_remote.index(
                self.selected_remote + "/" + current_local_branch)
        except ValueError:
            pre_selected_idx = 0

        def deferred_panel():
            self.window.show_quick_panel(
                self.branches_on_selected_remote,
                self.on_select_branch,
                flags=sublime.MONOSPACE_FONT,
                selected_index=pre_selected_idx
            )

        sublime.set_timeout(deferred_panel)
After the user selects a remote, display a panel of branches that are
dataset/ETHPy150Open divmain/GitSavvy/core/commands/pull.py/GsPullCommand.on_select_remote