bugfix: lookup the last selected repository if we don't have an already selected repository
bugfix: lookup the last selected repository if we don't have an already selected repository

gengjiawen/desktop,hjobrien/desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,say25/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,BugTesterTest/desktops,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,hjobrien/desktop,hjobrien/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,gengjiawen/desktop,gengjiawen/desktop,j-f1/forked-desktop,shiftkey/desktop,gengjiawen/desktop,BugTesterTest/desktops,hjobrien/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,BugTesterTest/desktops,kactus-io/kactus,artivilla/desktop